Test that default permitsigdata is false

This commit is contained in:
Steven Roose 2019-05-03 14:42:53 +01:00
parent c8525c9387
commit 794c305cdd
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -106,6 +106,7 @@ 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, "Inputs must not have scriptWitnesses", self.nodes[0].converttopsbt, signedtx['hex'], False)
assert_raises_rpc_error(-22, "Inputs must not have scriptWitnesses", self.nodes[0].converttopsbt, signedtx['hex'])
# Explicitly allow converting non-empty txs