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

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

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ class MempoolPackageLimitsTest(BitcoinTestFramework):
txid = tx.rehash()
if i < mempool_count:
node.sendrawtransaction(txhex)
assert_equal(node.getrawmempool(verbose=True)[txid]["ancestorcount"], i + 1)
assert_equal(node.getmempoolentry(txid)["ancestorcount"], i + 1)
else:
chain_hex.append(txhex)
chain_txns.append(tx)