mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 09:27:05 +00:00
return nonzero exit code on state transition failure (#996)
This commit is contained in:
parent
c1aff83b8b
commit
f0d02f5f29
@ -15,5 +15,6 @@ cli do(pre: string, blck: string, post: string, verifyStateRoot = false):
|
|||||||
|
|
||||||
if not state_transition(stateY[], blckX, flags, noRollback):
|
if not state_transition(stateY[], blckX, flags, noRollback):
|
||||||
error "State transition failed"
|
error "State transition failed"
|
||||||
|
quit 1
|
||||||
else:
|
else:
|
||||||
SSZ.saveFile(post, stateY.data)
|
SSZ.saveFile(post, stateY.data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user