mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Merge bitcoin/bitcoin#26640: test: Run mempool_compatibility.py with MiniWallet
fa43f60a0c
test: Run mempool_compatibility.py with MiniWallet (MarcoFalke) Pull request description: By using the already existing miniwallet, the test can be run even when no wallet is compiled. ACKs for top commit: glozow: ACKfa43f60a0c
achow101: ACKfa43f60a0c
Tree-SHA512: 6877b3f2f364663f04c28ab9f3d69780de6d1b77cc862379bba8c8242bbcfb0d26eb84c56cf721141407c393f1f3b49f667ae4fb32b3566108d71250e8b5d7bc
This commit is contained in:
commit
7734a0160d
1 changed files with 1 additions and 7 deletions
|
@ -21,12 +21,8 @@ from test_framework.wallet import (
|
|||
|
||||
|
||||
class MempoolCompatibilityTest(BitcoinTestFramework):
|
||||
def add_options(self, parser):
|
||||
self.add_wallet_options(parser)
|
||||
|
||||
def set_test_params(self):
|
||||
self.num_nodes = 2
|
||||
self.wallet_names = [None]
|
||||
|
||||
def skip_test_if_missing_module(self):
|
||||
self.skip_if_no_previous_releases()
|
||||
|
@ -37,7 +33,6 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
|||
None,
|
||||
])
|
||||
self.start_nodes()
|
||||
self.import_deterministic_coinbase_privkeys()
|
||||
|
||||
def run_test(self):
|
||||
self.log.info("Test that mempool.dat is compatible between versions")
|
||||
|
@ -51,11 +46,10 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
|||
# unbroadcasted_tx won't pass old_node's `MemPoolAccept::PreChecks`.
|
||||
self.connect_nodes(0, 1)
|
||||
self.sync_blocks()
|
||||
recipient = old_node.getnewaddress()
|
||||
self.stop_node(1)
|
||||
|
||||
self.log.info("Add a transaction to mempool on old node and shutdown")
|
||||
old_tx_hash = old_node.sendtoaddress(recipient, 0.0001)
|
||||
old_tx_hash = new_wallet.send_self_transfer(from_node=old_node)["txid"]
|
||||
assert old_tx_hash in old_node.getrawmempool()
|
||||
self.stop_node(0)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue