Skip to main content

Module utxo_overlay

Module utxo_overlay 

Source

Structs§

UtxoOverlay
Zero-copy overlay for UTXO set modifications during block validation.

Traits§

UtxoLookup
Trait for UTXO lookups - implemented by both UtxoSet and UtxoOverlay.

Functions§

apply_transaction_to_overlay
Apply a transaction to the overlay (for validation phase).
apply_transaction_to_overlay_no_undo
Apply a transaction to the overlay WITHOUT building undo entries.
apply_transaction_to_overlay_no_undo_cached
Apply overlay mutation using optional pre-built output cache when present.
apply_transaction_to_overlay_no_undo_with_output_cache
Same as apply_transaction_to_overlay_no_undo but reuses pre-built output Arcs.
build_block_output_utxo_cache
Pre-build all block output UTXOs once (identical bytes to per-tx overlay apply).
to_fast_utxo_set
Convert standard UtxoSet to FastUtxoSet (clones UTXOs).
utxo_deletion_key_to_outpoint

Type Aliases§

FastUtxoSet
Fast UTXO set using FxHash for better performance.
UtxoDeletionKey
Fixed-size key for deletions set — avoids OutPoint clone in remove() (~3k inputs/block). Same encoding as outpoint_to_key below: 32-byte txid + 4-byte big-endian vout.