Skip to main content

Module consensus_config

Module consensus_config 

Source
Expand description

Consensus runtime configuration from blvm-consensus (distinct from this crate’s config module).

Structs§

AdvancedConfig
Advanced configuration options
BlockValidationConfig
Block validation configuration
ConsensusConfig
Complete consensus configuration
DebugConfig
Debug and development configuration
FeatureFlagsConfig
Feature flags configuration
MempoolConfig
Mempool configuration
NetworkMessageLimits
Network message size limits configuration
PerformanceConfig
Performance and optimization configuration
UtxoCommitmentConfig
UTXO Commitment configuration

Functions§

get_assume_valid_hash
Assume-valid block hash. When set, block at assume_valid_height must match.
get_assume_valid_height
Benchmarking: set_assume_valid_height() overrides when feature enabled.
get_consensus_config
Get global consensus configuration (cached; clone for compatibility).
get_consensus_config_ref
Get global consensus configuration by reference (cached; no clone).
get_n_minimum_chain_work
Minimum chain work. Skip only when best_header_chainwork >= this.
init_consensus_config
Initialize global consensus configuration (optional, for tests or future node use).
init_rayon_for_script_verification
Initialize Rayon thread pool for script verification.
reset_assume_valid_height
Reset assume-valid override (benchmarking).
set_assume_valid_height
Set assume-valid height for benchmarking (overrides config).
use_overlay_delta
Use overlay delta for UTXO merge instead of sync_block_to_batch. Always enabled. connect_block_ibd returns UtxoDelta for the node to apply to pending_writes without re-walking the block.