From 761ac7094e38618bcc6a721b7ce351ffb21edbe1 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 23 Oct 2019 17:16:41 -0500 Subject: [PATCH] align max wal msg and max consensus msg sizes --- consensus/wal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/wal.go b/consensus/wal.go index 373f01a16..f393955dc 100644 --- a/consensus/wal.go +++ b/consensus/wal.go @@ -19,8 +19,8 @@ import ( ) 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 walDefaultFlushInterval = 2 * time.Second