aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_unbroadcast.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_unbroadcast.py
parent86dbd54ae8a8f9c693c0ea67114bbff24a0754df (diff)
downloadbitcoin-77349713b189e80f2c140db4df50177353a1cb83.tar.xz
test: use getmempoolentry instead of getrawmempool in functional tests when appropriate
Diffstat (limited to 'test/functional/mempool_unbroadcast.py')
-rwxr-xr-xtest/functional/mempool_unbroadcast.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/mempool_unbroadcast.py b/test/functional/mempool_unbroadcast.py
index 7d9e6c306d..5fe20ea9e1 100755
--- a/test/functional/mempool_unbroadcast.py
+++ b/test/functional/mempool_unbroadcast.py
@@ -94,9 +94,7 @@ class MempoolUnbroadcastTest(BitcoinTestFramework):
self.log.info("Rebroadcast transaction and ensure it is not added to unbroadcast set when already in mempool")
rpc_tx_hsh = node.sendrawtransaction(txFS["hex"])
- mempool = node.getrawmempool(True)
- assert rpc_tx_hsh in mempool
- assert not mempool[rpc_tx_hsh]['unbroadcast']
+ assert not node.getmempoolentry(rpc_tx_hsh)['unbroadcast']
def test_txn_removal(self):
self.log.info("Test that transactions removed from mempool are removed from unbroadcast set")