From 14aa2d95dc4a4bac942b677b04f94766fe85e3ed Mon Sep 17 00:00:00 2001 From: tycho garen Date: Fri, 4 Mar 2022 08:43:45 -0500 Subject: [PATCH] fix error checking --- node/node.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index d744cd6bc..da2bd6975 100644 --- a/node/node.go +++ b/node/node.go @@ -745,7 +745,9 @@ func loadStateFromDBOrGenesisDocProvider(stateStore sm.Store, genDoc *types.Gene return sm.State{}, err } - stateStore.Save(state) + if err := stateStore.Save(state); err != nil { + return sm.State{}, err + } } return state, nil