diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-05-17 16:38:19 +0200 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-05-31 07:32:28 +0200 |
commit | bfa9309ad606102f24c9bd3c33dfe78949f09418 (patch) | |
tree | 6c21faf3163fe922a6e7724f7837414fcadefc3e /test/functional/wallet_keypool_topup.py | |
parent | 525448df9dc2ab6b7e960ff138956ae3e2efdf60 (diff) | |
download | bitcoin-bfa9309ad606102f24c9bd3c33dfe78949f09418.tar.xz |
Use COINBASE_MATURITY constant in functional tests.
Diffstat (limited to 'test/functional/wallet_keypool_topup.py')
-rwxr-xr-x | test/functional/wallet_keypool_topup.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_keypool_topup.py b/test/functional/wallet_keypool_topup.py index 5619d57947..1ecf08b9ac 100755 --- a/test/functional/wallet_keypool_topup.py +++ b/test/functional/wallet_keypool_topup.py @@ -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) |