test framework: Add and use option for tx-version in MiniWallet methods

This commit is contained in:
MarcoFalke
2023-11-30 15:00:05 +01:00
committed by glozow
parent 9a1fea55b2
commit 27c8786ba9
2 changed files with 16 additions and 10 deletions

View File

@@ -408,10 +408,8 @@ class BIP68Test(BitcoinTestFramework):
# Use self.nodes[1] to test that version 2 transactions are standard.
def test_version2_relay(self):
mini_wallet = MiniWallet(self.nodes[1])
mini_wallet.rescan_utxos()
tx = mini_wallet.create_self_transfer()["tx"]
tx.nVersion = 2
mini_wallet.sendrawtransaction(from_node=self.nodes[1], tx_hex=tx.serialize().hex())
mini_wallet.send_self_transfer(from_node=self.nodes[1], version=2)
if __name__ == '__main__':
BIP68Test().main()