mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 03:01:09 +02:00
test: remove unnecessary finalizepsbt rpc calls
This commit is contained in:
committed by
Matthew Zipkin
parent
e3d484b603
commit
4614332fc4
@ -169,8 +169,7 @@ class WalletSignerTest(BitcoinTestFramework):
|
||||
dest = self.nodes[0].getnewaddress(address_type='bech32')
|
||||
mock_psbt = mock_wallet.walletcreatefundedpsbt([], {dest:0.5}, 0, {'replaceable': True}, True)['psbt']
|
||||
mock_psbt_signed = mock_wallet.walletprocesspsbt(psbt=mock_psbt, sign=True, sighashtype="ALL", bip32derivs=True)
|
||||
mock_psbt_final = mock_wallet.finalizepsbt(mock_psbt_signed["psbt"])
|
||||
mock_tx = mock_psbt_final["hex"]
|
||||
mock_tx = mock_psbt_signed["hex"]
|
||||
assert mock_wallet.testmempoolaccept([mock_tx])[0]["allowed"]
|
||||
|
||||
# # Create a new wallet and populate with specific public keys, in order
|
||||
|
Reference in New Issue
Block a user