Adapt test framework to Palladium consensus rules
This commit is contained in:
@@ -22,6 +22,9 @@ from io import BytesIO
|
||||
|
||||
logger = logging.getLogger("TestFramework.utils")
|
||||
|
||||
# Palladium consensus parameters for functional tests.
|
||||
COINBASE_MATURITY = 120
|
||||
|
||||
# Assert functions
|
||||
##################
|
||||
|
||||
@@ -501,7 +504,7 @@ def random_transaction(nodes, amount, min_fee, fee_increment, fee_variants):
|
||||
# Helper to create at least "count" utxos
|
||||
# Pass in a fee that is sufficient for relay and mining new transactions.
|
||||
def create_confirmed_utxos(fee, node, count):
|
||||
to_generate = int(0.5 * count) + 101
|
||||
to_generate = int(0.5 * count) + COINBASE_MATURITY + 1
|
||||
while to_generate > 0:
|
||||
node.generate(min(25, to_generate))
|
||||
to_generate -= 25
|
||||
|
||||
Reference in New Issue
Block a user