Adapt test framework to Palladium consensus rules

This commit is contained in:
2026-02-05 13:29:25 +01:00
parent f94645004a
commit ba4446842d
4 changed files with 37 additions and 21 deletions

View File

@@ -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