mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: decrease pipeline threshold to 64 (#3249)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -61,13 +61,14 @@ pub(crate) mod sync;
|
||||
use crate::engine::forkchoice::{ForkchoiceStateHash, ForkchoiceStateTracker};
|
||||
pub use event::BeaconConsensusEngineEvent;
|
||||
use reth_interfaces::blockchain_tree::InsertPayloadOk;
|
||||
use reth_primitives::constants::EPOCH_SLOTS;
|
||||
|
||||
/// The maximum number of invalid headers that can be tracked by the engine.
|
||||
const MAX_INVALID_HEADERS: u32 = 512u32;
|
||||
|
||||
/// The largest gap for which the tree will be used for sync. See docs for `pipeline_run_threshold`
|
||||
/// for more information.
|
||||
pub const MIN_BLOCKS_FOR_PIPELINE_RUN: u64 = 128;
|
||||
pub const MIN_BLOCKS_FOR_PIPELINE_RUN: u64 = 2 * EPOCH_SLOTS;
|
||||
|
||||
/// A _shareable_ beacon consensus frontend. Used to interact with the spawned beacon consensus
|
||||
/// engine.
|
||||
|
||||
Reference in New Issue
Block a user