extend `syncEth1Chain tick` log (#6049)

Provide additional context in the `syncEth1Chain tick` debug log to aid
with understanding of flow when debugging on a more precise basis than
just having the metrics.
This commit is contained in:
Etan Kissling 2024-03-08 19:27:45 +01:00 committed by GitHub
parent 984d5e4631
commit 1cdd3c62fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -1724,8 +1724,10 @@ proc syncEth1Chain(m: ELManager, connection: ELConnection) {.async.} =
debug "Starting Eth1 syncing", `from` = shortLog(m.eth1Chain.blocks[^1])
var latestBlockNumber: Eth1BlockNumber
while true:
debug "syncEth1Chain tick"
debug "syncEth1Chain tick",
shouldProcessDeposits, latestBlockNumber, eth1SyncedTo
if bnStatus == BeaconNodeStatus.Stopping:
await m.stop()
@ -1742,6 +1744,7 @@ proc syncEth1Chain(m: ELManager, connection: ELConnection) {.async.} =
except CatchableError as err:
warn "Failed to obtain the latest block from the EL", err = err.msg
raise err
latestBlockNumber = Eth1BlockNumber(latestBlock.number)
m.syncTargetBlock = some(
if Eth1BlockNumber(latestBlock.number) > m.cfg.ETH1_FOLLOW_DISTANCE: