aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_psbt.py
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-09-29 22:09:15 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-12-05 17:38:57 -0500
commit7a590d8390ef2158509c4fc08b84dac71f59e1fb (patch)
treef476f0184ede38f5a2277797fea93dd6defc9feb /test/functional/rpc_psbt.py
parent5d12143c730c3dcd11bb9dce16ed43a15a16eea2 (diff)
downloadbitcoin-7a590d8390ef2158509c4fc08b84dac71f59e1fb.tar.xz
fix converttopsbt permitsigdata arg, add basic test
Github-Pull: #14356 Rebased-From: 88a79cb436b30b39d37d139da723f5a31e9d161b
Diffstat (limited to 'test/functional/rpc_psbt.py')
-rwxr-xr-xtest/functional/rpc_psbt.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py
index a31719088f..ef895dd13a 100755
--- a/test/functional/rpc_psbt.py
+++ b/test/functional/rpc_psbt.py
@@ -146,6 +146,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)
# Explicilty allow converting non-empty txs
new_psbt = self.nodes[0].converttopsbt(rawtx['hex'])