replace assertion with warning message (#1776)
This commit is contained in:
parent
6f455fb8e4
commit
a1a8da82b4
|
@ -218,7 +218,8 @@ proc copyPrunedDatabase(
|
||||||
let sr = db.getStateRoot(signedBlock.root, slot)
|
let sr = db.getStateRoot(signedBlock.root, slot)
|
||||||
if sr.isErr:
|
if sr.isErr:
|
||||||
if stateRequired:
|
if stateRequired:
|
||||||
doAssert false, "state root and state required"
|
echo "skipping state root required for slot ",
|
||||||
|
slot, " with root ", signedBlock.root
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not db.getState(sr.get, beaconState[], noRollback):
|
if not db.getState(sr.get, beaconState[], noRollback):
|
||||||
|
|
Loading…
Reference in New Issue