Use COINBASE_MATURITY constant in functional tests.

This commit is contained in:
Kiminuo committed 2021-05-31 07:32:28 +02:00
1 parent 525448df9d
commit bfa9309ad6
45 files changed
+125 -66

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test resurrection of mined transactions when the blockchain is re-organized."""
from test_framework.blocktools import COINBASE_MATURITY
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
from test_framework.wallet import MiniWallet
@@ -20,7 +21,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
# Add enough mature utxos to the wallet so that all txs spend confirmed coins
wallet.generate(3)
node.generate(100)
node.generate(COINBASE_MATURITY)
# Spend block 1/2/3's coinbase transactions
# Mine a block