mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
Unnest
This commit is contained in:
@@ -70,7 +70,9 @@ func (wal *WAL) Exists() bool {
|
||||
|
||||
// called in newStep and for each pass in receiveRoutine
|
||||
func (wal *WAL) Save(clm ConsensusLogMessageInterface) {
|
||||
if wal != nil {
|
||||
if wal == nil {
|
||||
return
|
||||
}
|
||||
if wal.light {
|
||||
// in light mode we only write new steps, timeouts, and our own votes (no proposals, block parts)
|
||||
if mi, ok := clm.(msgInfo); ok {
|
||||
@@ -88,7 +90,6 @@ func (wal *WAL) Save(clm ConsensusLogMessageInterface) {
|
||||
PanicQ(Fmt("Error writing msg to consensus wal. Error: %v \n\nMessage: %v", err, clm))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Must not be called concurrently with a write.
|
||||
func (wal *WAL) Close() {
|
||||
|
Reference in New Issue
Block a user