Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fix: wrong lag calc #3675

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion node/service/src/relay_chain_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ where
self.metrics.note_disputes_finality_lag(lag_disputes);

// 4. Apply the maximum safeguard to the finality lag.
if lag > MAX_FINALITY_LAG {
if lag_disputes > MAX_FINALITY_LAG {
// We need to constrain our vote as a safety net to
// ensure the network continues to finalize.
let safe_target = initial_leaf_number - MAX_FINALITY_LAG;
Expand Down