return nonzero exit code on state transition failure (#996)

This commit is contained in:
tersec 2020-05-08 14:16:44 +00:00 committed by GitHub
parent c1aff83b8b
commit f0d02f5f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)