logs summarized

This commit is contained in:
Advaita Saha 2024-12-18 20:49:35 +05:30
parent 48aa410f8a
commit 830be41f65
No known key found for this signature in database
GPG Key ID: CFD30E9C609C12B4

View File

@ -223,11 +223,18 @@ proc writeBaggage(c: ForkedChainRef, target: Hash32) =
prevHash = header.parentHash
count.inc
notice "Finalized blocks persisted",
numberOfBlocks = count,
last = target.short,
baseNumber = c.baseHeader.number,
baseHash = c.baseHash.short
if count > 1:
notice "Finalized blocks persisted",
numberOfBlocks = count,
last = target.short,
baseNumber = c.baseHeader.number,
baseHash = c.baseHash.short
else:
debug "Finalized blocks persisted",
numberOfBlocks = count,
last = target.short,
baseNumber = c.baseHeader.number,
baseHash = c.baseHash.short
func updateBase(c: ForkedChainRef, pvarc: PivotArc) =
## Remove obsolete chains, example: