From f2d92729a2e0df992c789b5f2d9dd93a8e8d98e7 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 9 Feb 2024 20:32:31 +0100 Subject: [PATCH] reduce verbosity of `Got request for pre-backfill slot` (#5876) When syncing, we log a notice each time someone asks us for a block that we haven't backfilled yet. This is quite verbose and not unexpected, because the status message does not allow indicating backfill progress. --- beacon_chain/consensus_object_pools/blockchain_dag.nim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/beacon_chain/consensus_object_pools/blockchain_dag.nim b/beacon_chain/consensus_object_pools/blockchain_dag.nim index 3a07b847c..f1426204c 100644 --- a/beacon_chain/consensus_object_pools/blockchain_dag.nim +++ b/beacon_chain/consensus_object_pools/blockchain_dag.nim @@ -1633,13 +1633,8 @@ proc getBlockRange*( head = shortLog(dag.head.root), requestedCount, startSlot, skipStep, headSlot if startSlot < dag.backfill.slot: - if startSlot < dag.horizon: - # We will not backfill these - debug "Got request for pre-horizon slot", - startSlot, backfillSlot = dag.backfill.slot - else: - notice "Got request for pre-backfill slot", - startSlot, backfillSlot = dag.backfill.slot + debug "Got request for pre-backfill slot", + startSlot, backfillSlot = dag.backfill.slot, horizonSlot = dag.horizon return output.len if headSlot <= startSlot or requestedCount == 0: