test: remove unnecessary finalizepsbt rpc calls

This commit is contained in:
ismaelsadeeq
2023-09-05 17:10:21 +01:00
committed by Matthew Zipkin
parent e3d484b603
commit 4614332fc4
6 changed files with 27 additions and 40 deletions

View File

@ -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