test: use getmempoolentry instead of getrawmempool in functional tests when appropriate

This commit is contained in:
Michael Dietz
2021-08-16 18:29:07 +05:00
parent 86dbd54ae8
commit 77349713b1
6 changed files with 40 additions and 44 deletions

View File

@@ -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")