replace assertion with warning message (#1776)

This commit is contained in:
tersec 2020-09-29 15:15:49 +00:00 committed by GitHub
parent 6f455fb8e4
commit a1a8da82b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ proc copyPrunedDatabase(
let sr = db.getStateRoot(signedBlock.root, slot)
if sr.isErr:
if stateRequired:
doAssert false, "state root and state required"
echo "skipping state root required for slot ",
slot, " with root ", signedBlock.root
continue
if not db.getState(sr.get, beaconState[], noRollback):