aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-05 12:40:47 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-05 13:13:00 +0100
commitfa43f60a0c24880bf4802c74890644ae785bec7d (patch)
tree9d7ad11fc9702d63a42380b726518395aedd5d99
parentcac29f5cd66f005ce65edd697990d495a904a1f1 (diff)
downloadbitcoin-fa43f60a0c24880bf4802c74890644ae785bec7d.tar.xz
test: Run mempool_compatibility.py with MiniWallet
-rwxr-xr-xtest/functional/mempool_compatibility.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/functional/mempool_compatibility.py b/test/functional/mempool_compatibility.py
index 7f03a215b2..f789a19ef3 100755
--- a/test/functional/mempool_compatibility.py
+++ b/test/functional/mempool_compatibility.py
@@ -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)