mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 15:22:15 +00:00
consensus: sync wal.writeHeight
This commit is contained in:
parent
e4921733df
commit
f4e6cf4439
@ -104,4 +104,9 @@ func (wal *WAL) Save(wmsg WALMessage) {
|
|||||||
|
|
||||||
func (wal *WAL) writeHeight(height int) {
|
func (wal *WAL) writeHeight(height int) {
|
||||||
wal.group.WriteLine(Fmt("#HEIGHT: %v", height))
|
wal.group.WriteLine(Fmt("#HEIGHT: %v", height))
|
||||||
|
|
||||||
|
// TODO: only flush when necessary
|
||||||
|
if err := wal.group.Flush(); err != nil {
|
||||||
|
PanicQ(Fmt("Error flushing consensus wal buf to file. Error: %v \n", err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user