-
Notifications
You must be signed in to change notification settings - Fork 417
refactor(chain)!: remove inner method from KeychainTxOutIndex
#1652
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(chain)!: remove inner method from KeychainTxOutIndex
#1652
Conversation
445f2f2 to
936bba9
Compare
| txout_index.spk_at_index(TestKeychain::External, i), | ||
| Some(spk_at_index(&external_descriptor, i)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still might need another pass to fully grasp the tests, but shouldn't this be asserting for the TestKeychain::Internal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, fixed
It's desirable to have the inner SPK index internal to the `keychain_txout` module, which aims to provide views into the set of revealed SPKs for a given keychain. The inner index also functions as a cache of unrevealed SPKs, i.e. the lookahead. We test the functionality of the lookahead by checking the value returned from `KeychainTxOutIndex::spk_at_index` matches the SPK derived by the descriptor at that index for indices ranging from the last revealed to the expected last stored.
936bba9 to
8494c12
Compare
oleonardolima
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8494c12
notmandatory
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8494c12
|
BTW, thanks for naming the |
Fix #1353 by removing the
innermethod fromkeychain_txoutmodule. See commit message for details.Changelog notice
bdk_chain: Removed methodKeychainTxOutIndex::innerChecklists
All Submissions:
cargo fmtandcargo clippybefore committing