Skip to content

Commit 675edd4

Browse files
authored
feat: CON-675 Reduce acceptable finalization-certification gap to one (#2565)
The recent change in #2450 behaves as expected, so we further reduce the acceptable gap between latest certified and finalized heights to one round. This means that the gap should not grow bigger than two, as long as execution rounds are shorter than four seconds.
1 parent ae95701 commit 675edd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rs/consensus/src/consensus/notary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use std::{sync::Arc, time::Duration};
4949
/// The acceptable gap between the finalized height and the certified height. If
5050
/// the actual gap is greater than this, consensus starts slowing down the block
5151
/// rate.
52-
const ACCEPTABLE_FINALIZATION_CERTIFICATION_GAP: u64 = 2;
52+
const ACCEPTABLE_FINALIZATION_CERTIFICATION_GAP: u64 = 1;
5353

5454
/// The amount of time consensus should delay notarization of the next block by,
5555
/// for each height that the latest finalized block is ahead of the latest certified state.

0 commit comments

Comments
 (0)