test: use getmempoolentry instead of getrawmempool in functional tests when appropriate
This commit is contained in:
6 files changed
+40
-44
No files matched your search
@@ -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