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_backup.py | |
parent | 525448df9dc2ab6b7e960ff138956ae3e2efdf60 (diff) |
Use COINBASE_MATURITY constant in functional tests.
Diffstat (limited to 'test/functional/wallet_backup.py')
-rwxr-xr-x | test/functional/wallet_backup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/wallet_backup.py b/test/functional/wallet_backup.py index f34c1345e0..05a0ef0ea1 100755 --- a/test/functional/wallet_backup.py +++ b/test/functional/wallet_backup.py @@ -35,6 +35,7 @@ import os from random import randint import shutil +from test_framework.blocktools import COINBASE_MATURITY from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, @@ -123,7 +124,7 @@ class WalletBackupTest(BitcoinTestFramework): self.sync_blocks() self.nodes[2].generate(1) self.sync_blocks() - self.nodes[3].generate(100) + self.nodes[3].generate(COINBASE_MATURITY) self.sync_blocks() assert_equal(self.nodes[0].getbalance(), 50) @@ -152,7 +153,7 @@ class WalletBackupTest(BitcoinTestFramework): self.do_one_round() # Generate 101 more blocks, so any fees paid mature - self.nodes[3].generate(101) + self.nodes[3].generate(COINBASE_MATURITY + 1) self.sync_all() balance0 = self.nodes[0].getbalance() |