aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_compatibility.py
diff options
context:
space:
mode:
authorMichael Dietz <michael.dietz@waya.ai>2021-08-16 18:29:07 +0500
committerMichael Dietz <michael.dietz@waya.ai>2021-08-16 18:29:07 +0500
commit77349713b189e80f2c140db4df50177353a1cb83 (patch)
tree8b21b10191f2f75889bf89f436ee175696763fd7 /test/functional/mempool_compatibility.py
parent86dbd54ae8a8f9c693c0ea67114bbff24a0754df (diff)
downloadbitcoin-77349713b189e80f2c140db4df50177353a1cb83.tar.xz
test: use getmempoolentry instead of getrawmempool in functional tests when appropriate
Diffstat (limited to 'test/functional/mempool_compatibility.py')
-rwxr-xr-xtest/functional/mempool_compatibility.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/mempool_compatibility.py b/test/functional/mempool_compatibility.py
index 87f40b7f2b..9a50647a01 100755
--- a/test/functional/mempool_compatibility.py
+++ b/test/functional/mempool_compatibility.py
@@ -65,8 +65,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
self.log.info("Add unbroadcasted tx to mempool on new node and shutdown")
unbroadcasted_tx_hash = new_wallet.send_self_transfer(from_node=new_node)['txid']
assert unbroadcasted_tx_hash in new_node.getrawmempool()
- mempool = new_node.getrawmempool(True)
- assert mempool[unbroadcasted_tx_hash]['unbroadcast']
+ assert new_node.getmempoolentry(unbroadcasted_tx_hash)['unbroadcast']
self.stop_node(1)
self.log.info("Move mempool.dat from new to old node")