Skip to content

Commit

Permalink
allow benching state_transition failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 18, 2019
1 parent 472a90f commit 271fb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbench/nbench.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ proc runFullTransition(dir, preState, blocksPrefix: string, blocksQty: int, skip
let flags = if skipBLS: {skipValidation} # TODO: this also skips state root verification
else: {}
let success = state_transition(state[], blck, flags)
doAssert success, "Failure when applying block " & blockPath
echo "State transition status: ", if success: "SUCCESS ✓" else: "FAILURE ⚠️"

proc runProcessSlots(dir, preState: string, numSlots: uint64) =
let prePath = dir / preState & ".ssz"
Expand Down

0 comments on commit 271fb08

Please sign in to comment.