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

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