-
Notifications
You must be signed in to change notification settings - Fork 412
chain: replace ScriptBuf with &Script in SPK index methods
#2052
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
Conversation
|
Thank you @yukibtc. |
|
Concept ACK. For ergonomics, what do you think about having For methods that take ownership of the script, maybe we should change to |
…x methods Replace `ScriptBuf` with `AsRef<Script>` in `SpkTxOutIndex::index_of_spk` and `KeychainTxOutIndex::index_of_spk` methods, to avoid the need of cloning the `ScriptBuf` for a SPK index lookup. Signed-off-by: Yuki Kishimoto <[email protected]>
0992012 to
c095145
Compare
Agree, I've updated to take
Yeah, maybe is better to do this in a dedicated PR |
|
Seems that CI failed for a electrsd timeout |
aagbotemi
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.
Code tested and result look okay.
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.
cACK c095145
evanlinjin
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 c095145
Description
Replace
ScriptBufwith&ScriptinSpkTxOutIndex::index_of_spkandKeychainTxOutIndex::index_of_spkmethods, to avoid the need of cloning theScriptBuffor a SPK index lookup.Changelog notice
Breaking changes:
SpkTxOutIndex::index_of_spkandKeychainTxOutIndex::index_of_spkargs fromScriptBufto&Script.Checklists
All Submissions:
New Features:
Bugfixes: