mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 11:11:15 +02:00
Use COINBASE_MATURITY constant in functional tests.
This commit is contained in:
@ -15,6 +15,8 @@ Test the following RPCs:
|
||||
from collections import OrderedDict
|
||||
from decimal import Decimal
|
||||
from io import BytesIO
|
||||
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework.messages import CTransaction, ToHex
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import (
|
||||
@ -66,7 +68,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
self.log.info('prepare some coins for multiple *rawtransaction commands')
|
||||
self.nodes[2].generate(1)
|
||||
self.sync_all()
|
||||
self.nodes[0].generate(101)
|
||||
self.nodes[0].generate(COINBASE_MATURITY + 1)
|
||||
self.sync_all()
|
||||
self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(),1.5)
|
||||
self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(),1.0)
|
||||
|
Reference in New Issue
Block a user