Skip to main content

Module test_utils

Module test_utils 

Source

Functions§

create_coinbase_tx
Create a valid coinbase transaction (scriptSig 2–100 bytes per consensus). Shared by integration tests so fixture behavior stays consistent.
create_test_header
Create a block header with the given timestamp and previous block hash. Shared by integration tests so fixture behavior stays consistent.
create_test_utxo_set_two_outputs
UTXO set with two outputs for fee-calculation style tests (1 BTC and 0.5 BTC). Shared by integration tests so fixture behavior stays consistent.