From 121d1db3a8c07d3eb450b95e76d1d7eb95d801d3 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 19:45:40 +0100 Subject: remake: decouple grace time from node's keepalive --- src/remake/proposal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remake/proposal.rs') diff --git a/src/remake/proposal.rs b/src/remake/proposal.rs index d9cd893..7695b4c 100644 --- a/src/remake/proposal.rs +++ b/src/remake/proposal.rs @@ -23,7 +23,7 @@ pub(super) fn abortable_at(record: &Record, grace: u64) -> UnixMillis { record .proposal .settle_until - .plus_ms(grace.saturating_mul(2)) + .plus_ms(record.grace(grace).saturating_mul(2)) } /// Why this node may not abort expired `record` now, and the `force` name that would @@ -157,7 +157,7 @@ pub(super) async fn propose( coordinator_active: supersede .active_peers .contains(&record.proposal.coordinator), - since: record.proposal.settle_until.plus_ms(grace), + since: record.proposal.settle_until.plus_ms(record.grace(grace)), abortable_at: abortable_at(record, grace), tally: vote::tally(id, record, &all, ®ister), }) -- cgit v1.3.1