-
Notifications
You must be signed in to change notification settings - Fork 6
Switch UTXOIdentifier back to being (tx_hash, output_index) #451
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Builds release but not test Requires implementation of GetBlockHashesAndIndexOfTransactionHashes in ChainStore, to enable REST to look up block hashes and tx indexes from tx hashes Memory use of AddressState will explode with this change - requires either spilling to disk and/or using CompactUTxOIdentifier internally and then a restituted GetUTXOHashes to look up as before.
…xo-reversion Fix failing tests due to UTxOIdentifier change
Collaborator
Author
|
Implementing |
alexwoods
approved these changes
Dec 10, 2025
Collaborator
Author
|
Alex's changes look good, thanks - merging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts UTXOIdentifier to being (tx_hash, output_index), enabling bootstrap from snapshot.
Work In Progress!
Description
Reverts UTXOIdentifier - and hence storage key in UTXOState - to being tx hash based, removing memory optimisation through UTXORegistry in TxUnpacker (which has been removed).
This also means the REST queries need to look up TX hashes to get block hashes and tx indexes within the block - there is a new GetBlockHashesAndIndexOfTransactionHashes query to do this, but it needs implementing. I'm not sure if ChainStore has the indexes to do this.
Related Issue(s)
Fixes #448 #410
How was this tested?
Not yet tested - multiple test builds broken at the moment
Checklist
Impact / Side effects
The memory use of AddressState will explode with this change - requires either spilling to disk and/or using CompactUTxOIdentifier internally and then a restituted GetUTXOHashes to look up as before.
Reviewer notes / Areas to focus