diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-07-10 17:02:18 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-07-10 17:04:11 +0200 |
commit | fad42e8c4a9d625146f82bab9a038d945d40ac4f (patch) | |
tree | 835b45f08d0dbdef2801da95f1d2d945c315e201 /src/bitcoin-tx.cpp | |
parent | b05ded176466dde1cf06b21834afcc46824eabb3 (diff) | |
parent | 685d1d8115f61b15115d80523dd8273f0a816534 (diff) | |
download | bitcoin-fad42e8c4a9d625146f82bab9a038d945d40ac4f.tar.xz |
Merge #13547: Make signrawtransaction* give an error when amount is needed but missing
685d1d8115f61b15115d80523dd8273f0a816534 [tests] Check signrawtransaction* errors on missing prevtx info (Anthony Towns)
a3b065b51fb333d976108a1fe34b7f663fd67285 Error on missing amount in signrawtransaction* (Anthony Towns)
Pull request description:
Signatures using segregated witness commit to the amount being spent, so that value must be passed into signrawtransactionwithkey and signrawtransactionwithwallet. This ensures an error is issued if that doesn't happen, rather than just assuming the value is 0 and producing a signature that is almost certainly invalid.
Based on Ben Woosley's #12458, Fixes: #12429.
Tree-SHA512: 8e2ff89d5bcf79548e569210af0d850028bc98d86c149b92207c9300ab1d63664a7e2b222c1be403a15941aa5cf36ccc3c0d570ee1c1466f3496b4fe06c17e11
Diffstat (limited to 'src/bitcoin-tx.cpp')
0 files changed, 0 insertions, 0 deletions