mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
functional test: ensure confirmed utxo being sourced for 2nd chain
This commit is contained in:
@@ -41,7 +41,7 @@ class MempoolPackagesTest(BitcoinTestFramework):
|
|||||||
for _ in range(DEFAULT_ANCESTOR_LIMIT - 4):
|
for _ in range(DEFAULT_ANCESTOR_LIMIT - 4):
|
||||||
utxo, = self.chain_tx([utxo])
|
utxo, = self.chain_tx([utxo])
|
||||||
chain.append(utxo)
|
chain.append(utxo)
|
||||||
second_chain, = self.chain_tx([self.wallet.get_utxo()])
|
second_chain, = self.chain_tx([self.wallet.get_utxo(confirmed_only=True)])
|
||||||
|
|
||||||
# Check mempool has DEFAULT_ANCESTOR_LIMIT + 1 transactions in it
|
# Check mempool has DEFAULT_ANCESTOR_LIMIT + 1 transactions in it
|
||||||
assert_equal(len(self.nodes[0].getrawmempool()), DEFAULT_ANCESTOR_LIMIT + 1)
|
assert_equal(len(self.nodes[0].getrawmempool()), DEFAULT_ANCESTOR_LIMIT + 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user