mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-03 20:21:34 +02:00
More tests of signer checks
This commit is contained in:
committed by
Pieter Wuille
parent
7c8bffdc24
commit
5df6f089b5
@ -168,9 +168,11 @@ class PSBTTest(BitcoinTestFramework):
|
||||
|
||||
# Signer tests
|
||||
for i, signer in enumerate(signers):
|
||||
self.nodes[2].createwallet("wallet{}".format(i))
|
||||
wrpc = self.nodes[2].get_wallet_rpc("wallet{}".format(i))
|
||||
for key in signer['privkeys']:
|
||||
self.nodes[i].importprivkey(key)
|
||||
signed_tx = self.nodes[i].walletprocesspsbt(signer['psbt'])['psbt']
|
||||
wrpc.importprivkey(key)
|
||||
signed_tx = wrpc.walletprocesspsbt(signer['psbt'])['psbt']
|
||||
assert_equal(signed_tx, signer['result'])
|
||||
|
||||
# Combiner test
|
||||
|
Reference in New Issue
Block a user