mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-03 17:30:25 +01:00
test: use getmempoolentry instead of getrawmempool in functional tests when appropriate
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user