mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 20:42:13 +00:00
better log on finalized slot failure
This commit is contained in:
parent
bcd7b4598c
commit
ff4f2a6b6c
@ -517,7 +517,10 @@ proc init*(T: type ChainDAGRef, cfg: RuntimeConfig, db: BeaconChainDB,
|
||||
for blck in db.getAncestorSummaries(headRoot):
|
||||
if midRef != nil and blck.summary.slot == midRef.slot:
|
||||
if midRef.root != blck.root:
|
||||
fatal "Finalized block table does not match ancestor summaries, database corrupt?"
|
||||
fatal "Finalized block table does not match ancestor summaries, database corrupt?",
|
||||
head = shortLog(headRoot), cur = shortLog(curRef),
|
||||
midref = shortLog(midRef), blck = shortLog(blck.root)
|
||||
|
||||
quit 1
|
||||
|
||||
if curRef == nil:
|
||||
|
Loading…
x
Reference in New Issue
Block a user