From a1a8da82b40067434df59d0fa8f60f85481df052 Mon Sep 17 00:00:00 2001 From: tersec Date: Tue, 29 Sep 2020 15:15:49 +0000 Subject: [PATCH] replace assertion with warning message (#1776) --- ncli/ncli_db.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ncli/ncli_db.nim b/ncli/ncli_db.nim index 7642c1cfe..6cc113091 100644 --- a/ncli/ncli_db.nim +++ b/ncli/ncli_db.nim @@ -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):