mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
Use COINBASE_MATURITY constant in functional tests.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
"""Test bitcoin-cli"""
|
||||
|
||||
from decimal import Decimal
|
||||
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import (
|
||||
assert_equal,
|
||||
@@ -16,7 +18,7 @@ from test_framework.util import (
|
||||
# The block reward of coinbaseoutput.nValue (50) BTC/block matures after
|
||||
# COINBASE_MATURITY (100) blocks. Therefore, after mining 101 blocks we expect
|
||||
# node 0 to have a balance of (BLOCKS - COINBASE_MATURITY) * 50 BTC/block.
|
||||
BLOCKS = 101
|
||||
BLOCKS = COINBASE_MATURITY + 1
|
||||
BALANCE = (BLOCKS - 100) * 50
|
||||
|
||||
JSON_PARSING_ERROR = 'error: Error parsing JSON: foo'
|
||||
|
Reference in New Issue
Block a user