From 794c305cdda1fe1d2ae0454e6809170eb63386ea Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Fri, 3 May 2019 14:42:53 +0100 Subject: [PATCH] Test that default `permitsigdata` is false --- test/functional/rpc_psbt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index ec52bfdcc0..9bdaa5311d 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -106,6 +106,7 @@ def run_test(self): # 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