Browse Source

fix error checking

pull/8062/head
tycho garen 3 years ago
parent
commit
14aa2d95dc
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      node/node.go

+ 3
- 1
node/node.go View File

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


Loading…
Cancel
Save