Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/rpc/methods/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,12 @@ impl ChainGetTipSetFinalityStatus {
find_threshold_depth,
};

/// Number of extra epochs to fetch beyond [`chain_finality`] when
/// building the chain sample for [`find_threshold_depth`].
///
/// The extra 5 epochs act as a tail buffer to prevent out-of-bounds access,
Comment thread
hanabi1224 marked this conversation as resolved.
/// particularly when null rounds (epochs with zero blocks) are present, since
/// they consume array slots without advancing the meaningful epoch count.
const FINALITY_CHAIN_EXTRA_EPOCHS: usize = 5;
Comment thread
coderabbitai[bot] marked this conversation as resolved.

let finality = ctx.chain_config().policy.chain_finality;
Expand Down
Loading