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/mining_getblocktemplate_longpoll.py | |
parent | 525448df9dc2ab6b7e960ff138956ae3e2efdf60 (diff) | |
download | bitcoin-bfa9309ad606102f24c9bd3c33dfe78949f09418.tar.xz |
Use COINBASE_MATURITY constant in functional tests.
Diffstat (limited to 'test/functional/mining_getblocktemplate_longpoll.py')
-rwxr-xr-x | test/functional/mining_getblocktemplate_longpoll.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/mining_getblocktemplate_longpoll.py b/test/functional/mining_getblocktemplate_longpoll.py index cc32f78e2e..715b68e04c 100755 --- a/test/functional/mining_getblocktemplate_longpoll.py +++ b/test/functional/mining_getblocktemplate_longpoll.py @@ -8,6 +8,7 @@ from decimal import Decimal import random import threading +from test_framework.blocktools import COINBASE_MATURITY from test_framework.test_framework import BitcoinTestFramework from test_framework.util import get_rpc_proxy from test_framework.wallet import MiniWallet @@ -62,7 +63,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework): assert not thr.is_alive() # Add enough mature utxos to the wallets, so that all txs spend confirmed coins - self.nodes[0].generate(100) + self.nodes[0].generate(COINBASE_MATURITY) self.sync_blocks() self.log.info("Test that introducing a new transaction into the mempool will terminate the longpoll") |