mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-18 19:47:53 +02:00
test: remove redundant blocks generation logic
those tests already have enough mature utxos from the pre-mined chain.
This commit is contained in:
@@ -8,7 +8,6 @@ from decimal import Decimal
|
||||
import random
|
||||
import threading
|
||||
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import get_rpc_proxy
|
||||
from test_framework.wallet import MiniWallet
|
||||
@@ -62,9 +61,6 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
|
||||
thr.join(5) # wait 5 seconds or until thread exits
|
||||
assert not thr.is_alive()
|
||||
|
||||
# Add enough mature utxos to the wallets, so that all txs spend confirmed coins
|
||||
self.generate(self.nodes[0], COINBASE_MATURITY)
|
||||
|
||||
self.log.info("Test that introducing a new transaction into the mempool will terminate the longpoll")
|
||||
thr = LongpollThread(self.nodes[0])
|
||||
thr.start()
|
||||
|
||||
Reference in New Issue
Block a user