From 3d9888f7360426f044cce7232266317e8b76dd69 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 22 Jan 2021 20:44:24 +1000 Subject: [PATCH] Rewrite a sync comment --- zebrad/src/components/sync.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 55078762..41bf15a7 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -36,9 +36,10 @@ const FANOUT: usize = 4; /// retries may be concurrent, inner retries are sequential. const BLOCK_DOWNLOAD_RETRY_LIMIT: usize = 2; -/// A lower bound on the user-specified lookahead limit, set to two -/// checkpoint intervals so that we're sure that the lookahead limit -/// always contains at least one complete checkpoint interval. +/// A lower bound on the user-specified lookahead limit. +/// +/// Set to two checkpoint intervals, so that we're sure that the lookahead +/// limit always contains at least one complete checkpoint. const MIN_LOOKAHEAD_LIMIT: usize = zebra_consensus::MAX_CHECKPOINT_HEIGHT_GAP * 2; /// Controls how long we wait for a tips response to return.