Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: mapping for deleted mmr position to height/hash for perf #3394

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 29, 2021

Description

  • add index to optimise query for block height from deleted mmr position
  • update query_deleted rpc call to use new call
  • check if database should be resynced to avoid confusion around
    db errors resulting from this change
  • exit code message showing help for a required db resync

Motivation and Context

Base node RPC call to query_deleted is slow

How Has This Been Tested?

Updated blockchain db unit test, manually

BREAKING CHANGE: blockchain database will need to be resynced

- add index to optimise query for block height from deleted mmr position
- update query_deleted rpc call to use new call
- check if database should be resynced to avoid confusion around
  db errors resulting from this change
- exit code message showing help for a required db resync
@sdbondi sdbondi changed the title refactor: mapping for deleted mmr position to height/hash for perf refactor!: mapping for deleted mmr position to height/hash for perf Sep 30, 2021
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@stringhandler stringhandler merged commit c79a67b into tari-project:tx-validation2 Sep 30, 2021
@sdbondi sdbondi deleted the core-height-db-index branch September 30, 2021 12:13
stringhandler added a commit that referenced this pull request Oct 6, 2021
alternate approach to transaction validation (#3191)
feat!: integration of new transaction and output validation (#3352)
feat: update coinbase handling for new tx and output validation (#3383)
refactor: use wallet connectivity in wallet services (#3391)
refactor: mapping for deleted mmr position to height/hash for perf (#3394)
feat: Fix reinstating CancelledInbound outputs and fix tests (#3400)
chore: merge development into tx-validation2 and fix issues (#3417)
Uncomment cucumber tests
@sdbondi sdbondi restored the core-height-db-index branch February 3, 2022 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants