Using [[Substrate]] Framework, the [[ZKP/ZKP Base Layer/ZKP Blockchain/High Level Overview|ZKP blockchain]] employs BABE+GRANDPA for Byzantine Fault Tolerant (BFT) consensus, achieving ~6-second block production with 1-2 second finality [109, 110, 107], however, this may be optimized in the future. BABE's slot-based block production combined with GRANDPA's chain-based finality ensures no forks unless (> 1/3) validators are Byzantine, with latency (Latency = BlockTime + FinalizationTime) (BlockTime ≈ 6s, FinalizationTime ≈ 1-2s). Substrate's modular framework enables custom pallets (e.g., pallet-poi, pallet-posp) and governance, while tools like Substrate CLI facilitate rapid development, supporting iteration for AI and privacy features [111]. **Pallet Structure:** Substrate uses [[Patricia Tries]] for state storage, with ~1ms read/write latency for key-value operations. Governance proposals (e.g., runtime upgrades, parameter changes) execute through the democracy pallet in ~1 block (~6s), ensuring agile parameter updates (e.g., adjusting PoI/PoSp weights) through forkless runtime upgrades [114]. **Performance Tuning:** Substrate's transaction pool prioritizes transactions by fee per weight (Priority = Fee / Weight), with configurable pool capacity. Block weight limits cap computational resources, balancing throughput and execution time within the 6-second block window [117]. See also: [[ZKP/ZKP Base Layer/ZKP Blockchain/Technical Build Consensus Layer/Consensus Model|Consensus Model]]