mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
linting: moar fixes
This commit is contained in:
committed by
Ethan Buchman
parent
d7cb291fb2
commit
a15c7f221d
@ -99,6 +99,9 @@ func (cs *ConsensusState) catchupReplay(csHeight int) error {
|
||||
// NOTE: This is just a sanity check. As far as we know things work fine without it,
|
||||
// and Handshake could reuse ConsensusState if it weren't for this check (since we can crash after writing ENDHEIGHT).
|
||||
gr, found, err := cs.wal.SearchForEndHeight(uint64(csHeight))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if gr != nil {
|
||||
if err := gr.Close(); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user