aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_watchonly.py
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2021-05-17 16:38:19 +0200
committerKiminuo <kiminuo@protonmail.com>2021-05-31 07:32:28 +0200
commitbfa9309ad606102f24c9bd3c33dfe78949f09418 (patch)
tree6c21faf3163fe922a6e7724f7837414fcadefc3e /test/functional/wallet_watchonly.py
parent525448df9dc2ab6b7e960ff138956ae3e2efdf60 (diff)
downloadbitcoin-bfa9309ad606102f24c9bd3c33dfe78949f09418.tar.xz
Use COINBASE_MATURITY constant in functional tests.
Diffstat (limited to 'test/functional/wallet_watchonly.py')
-rwxr-xr-xtest/functional/wallet_watchonly.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_watchonly.py b/test/functional/wallet_watchonly.py
index c345c382d0..6743c4a49b 100755
--- a/test/functional/wallet_watchonly.py
+++ b/test/functional/wallet_watchonly.py
@@ -5,6 +5,7 @@
"""Test createwallet watchonly arguments.
"""
+from test_framework.blocktools import COINBASE_MATURITY
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
@@ -36,7 +37,7 @@ class CreateWalletWatchonlyTest(BitcoinTestFramework):
wo_wallet.importpubkey(pubkey=def_wallet.getaddressinfo(wo_change)['pubkey'])
# generate some btc for testing
- node.generatetoaddress(101, a1)
+ node.generatetoaddress(COINBASE_MATURITY + 1, a1)
# send 1 btc to our watch-only address
txid = def_wallet.sendtoaddress(wo_addr, 1)