align max wal msg and max consensus msg sizes

This commit is contained in:
Anton Kaliaev
2019-10-23 17:16:41 -05:00
committed by Jack Zampolin
parent 7ec2dff6fd
commit c013501f45

View File

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