note summary data about invalid baked-in states (#5247)

This commit is contained in:
tersec 2023-08-04 05:36:42 +00:00 committed by GitHub
parent 8f18491131
commit 1c55ef7345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -550,7 +550,9 @@ proc init*(T: type BeaconNode,
try:
newClone readSszForkedHashedBeaconState(cfg, metadata.genesisBytes)
except CatchableError as err:
raiseAssert "Invalid baked-in state: " & err.msg
raiseAssert "Invalid baked-in state of length " &
$metadata.genesisBytes.len & " and eth2digest " &
$eth2digest(metadata.genesisBytes) & ": " & err.msg
else:
nil