mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-12 18:12:32 +02:00
Use COINBASE_MATURITY constant in functional tests.
This commit is contained in:
@ -13,6 +13,7 @@ Two nodes. Node1 is under test. Node0 is providing transactions and generating b
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import (
|
||||
assert_equal,
|
||||
@ -31,7 +32,7 @@ class KeypoolRestoreTest(BitcoinTestFramework):
|
||||
def run_test(self):
|
||||
wallet_path = os.path.join(self.nodes[1].datadir, self.chain, "wallets", self.default_wallet_name, self.wallet_data_filename)
|
||||
wallet_backup_path = os.path.join(self.nodes[1].datadir, "wallet.bak")
|
||||
self.nodes[0].generate(101)
|
||||
self.nodes[0].generate(COINBASE_MATURITY + 1)
|
||||
|
||||
self.log.info("Make backup of wallet")
|
||||
self.stop_node(1)
|
||||
|
Reference in New Issue
Block a user