Browse Source

align max wal msg and max consensus msg sizes

v0.31
Anton Kaliaev 5 years ago
committed by Jack Zampolin
parent
commit
761ac7094e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      consensus/wal.go

+ 2
- 2
consensus/wal.go View File

@ -19,8 +19,8 @@ import (
) )
const ( const (
// must be greater than types.BlockPartSizeBytes + a few bytes
maxMsgSizeBytes = 1024 * 1024 // 1MB
// amino overhead + time.Time + max consensus msg size
maxMsgSizeBytes = maxMsgSize + 24
// how often the WAL should be sync'd during period sync'ing // how often the WAL should be sync'd during period sync'ing
walDefaultFlushInterval = 2 * time.Second walDefaultFlushInterval = 2 * time.Second


Loading…
Cancel
Save