Use COINBASE_MATURITY constant in functional tests.

This commit is contained in:
Kiminuo
2021-05-17 16:38:19 +02:00
parent 525448df9d
commit bfa9309ad6
45 changed files with 125 additions and 66 deletions

View File

@ -12,6 +12,7 @@ the index.
from decimal import Decimal
from test_framework.blocktools import (
COINBASE_MATURITY,
create_block,
create_coinbase,
)
@ -68,7 +69,7 @@ class CoinStatsIndexTest(BitcoinTestFramework):
index_hash_options = ['none', 'muhash']
# Generate a normal transaction and mine it
node.generate(101)
node.generate(COINBASE_MATURITY + 1)
address = self.nodes[0].get_deterministic_priv_key().address
node.sendtoaddress(address=address, amount=10, subtractfeefromamount=True)
node.generate(1)