Skip to main content

Module block

Module block 

Source

Structs§

BlockValidationContext
Block validation context: time, network, fork activation, and optional rule data.
UtxoDeltaInner
Overlay delta for disk sync. Returned by connect_block_ibd when BLVM_USE_OVERLAY_DELTA=1. Node converts to SyncBatch and calls apply_sync_batch instead of sync_block_to_batch. Arc in additions avoids clone in apply_sync_batch hot path.

Functions§

apply_transaction
Spec-locked to Orange Paper Section 5.3.1: ApplyTransaction
block_validation_context_for_connect_ibd
Forwards to BlockValidationContext::from_connect_block_ibd_args with no BIP54 activation override and no boundary timestamps. Does not invent time or headers; pass the same values you would pass to the underlying constructor.
calculate_base_script_flags_for_block_network
Convenience: base script flags from (height, network) when no context is available (e.g. mempool).
calculate_script_flags_for_block_network
Spec-locked to Orange Paper Section 5.2.5: CalculateScriptFlagsForBlockNetwork
calculate_tx_id
Spec-locked to Orange Paper Section 5.1: CalculateTxId
compute_block_tx_ids
compute_block_tx_ids_into
Compute transaction IDs for a block (extracted for reuse). Produces {Hash(tx) : tx ∈ block.transactions} for ComputeMerkleRoot input (Orange Paper 8.4.1). Public so node layer can compute once and share between collect_gaps and connect_block_ibd (#21).
compute_block_tx_ids_spec
Spec-locked to Orange Paper Section 8.4.1: ComputeBlockTxIdsSpec
connect_block
Spec-locked to Orange Paper Section 5.3: ConnectBlock
connect_block_ibd
Spec-locked to Orange Paper Section 5.3: ConnectBlockIbd
get_assume_valid_height

Type Aliases§

UtxoDelta