diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2018-09-29 22:09:15 -0400 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2018-09-29 22:09:15 -0400 |
commit | 88a79cb436b30b39d37d139da723f5a31e9d161b (patch) | |
tree | 53ad894377848752690cad04f69be88c58c46c5f /test/functional | |
parent | c9327306b580bb161d1732c0a0260b46c0df015c (diff) |
fix converttopsbt permitsigdata arg, add basic test
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/rpc_psbt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 54dc871448..3cbaa274e9 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -107,6 +107,9 @@ class PSBTTest(BitcoinTestFramework): # Make sure that a psbt with signatures cannot be converted signedtx = self.nodes[0].signrawtransactionwithwallet(rawtx['hex']) assert_raises_rpc_error(-22, "TX decode failed", self.nodes[0].converttopsbt, signedtx['hex']) + assert_raises_rpc_error(-22, "TX decode failed", self.nodes[0].converttopsbt, signedtx['hex'], False) + # Unless we allow it to convert and strip signatures + self.nodes[0].converttopsbt(signedtx['hex'], True) # Explicitly allow converting non-empty txs new_psbt = self.nodes[0].converttopsbt(rawtx['hex']) |