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
Address::from_script
to return a Result
#1022
Comments
Added another fail condition to be checked: #1021 (comment) |
Picking this up |
@sanket1729 Is this check not already performed when Relevant code: rust-bitcoin/src/util/address.rs Lines 397 to 402 in 09b4198
rust-bitcoin/src/blockdata/script.rs Lines 547 to 551 in 09b4198
|
@nlanson, you are correct! This is already being done. Sorry for the confusion. But as far as this issue is concerned, we should have a dedicated error variant here. |
Modify from_script functions to return result instead of option so that, in case of errors, there is more information on what went wrong. Resolves: rust-bitcoin#1022
Modify from_script functions to return result instead of option so that, in case of errors, there is more information on what went wrong. Resolves: rust-bitcoin#1022
66e852c Update format of ExcessiveScriptSize error message (eunoia_1729) 89bd4b6 Modify from_script functions in address.rs to return result (eunoia_1729) Pull request description: Modify from_script functions to return result instead of option so that, in case of errors, there is more information on what went wrong. Resolves: #1022 ACKs for top commit: sanket1729: ACK 66e852c. LGTM tcharding: ACK 66e852c apoelstra: ACK 66e852c Tree-SHA512: 0d9529aee0a5459351bed2cc8b2c5571736d3293e2931c43d98f53330e9ac5f3d998a19da2b4575af0a3c1c4dcfd5a24c8813390bf6f5492a689c36ebb9cb426
#1021 (comment)
The text was updated successfully, but these errors were encountered: