diff options
author | Andrew Chow <achow101-github@achow101.com> | 2018-11-08 10:08:46 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2018-11-08 10:38:43 -0500 |
commit | 6b8d86ddb803d50d8608d95f7e8f791511dec8b9 (patch) | |
tree | 33a41f992ee78992960871af6b010dda8345cc10 /test/functional/rpc_psbt.py | |
parent | 11e1ac3ae08535cefbd8235a8deb6cd100bcb2b1 (diff) |
Require a public key to be retrieved when signing a P2PKH input
If we do not have the public key for a P2PKH input, we should not
continue to attempt to sign for it.
Diffstat (limited to 'test/functional/rpc_psbt.py')
-rwxr-xr-x | test/functional/rpc_psbt.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index fca910bf64..30f84cff3c 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -269,6 +269,10 @@ class PSBTTest(BitcoinTestFramework): self.test_utxo_conversion() + # Test that psbts with p2pkh outputs are created properly + p2pkh = self.nodes[0].getnewaddress(address_type='legacy') + psbt = self.nodes[1].walletcreatefundedpsbt([], [{p2pkh : 1}], 0, {"includeWatching" : True}, True) + self.nodes[0].decodepsbt(psbt['psbt']) if __name__ == '__main__': PSBTTest().main() |