test: remove redundant blocks generation logic

those tests already have enough mature utxos from the pre-mined chain.
This commit is contained in:
kouloumos
2023-01-13 12:00:53 +02:00
parent 0377d6bb42
commit 42029a7fd4
5 changed files with 0 additions and 16 deletions

View File

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