block: fix max commit sig size (#5567)

This commit is contained in:
Callum Waters
2020-10-26 11:37:48 +01:00
parent a0f08686fb
commit c4f1b2d7db
4 changed files with 21 additions and 27 deletions
+4 -2
View File
@@ -24,6 +24,8 @@ import (
const (
// MaxHeaderBytes is a maximum header size.
// NOTE: Because app hash can be of arbitrary size, the header is therefore not
// capped in size and thus this number should be seen as a soft max
MaxHeaderBytes int64 = 626
// MaxOverheadForBlock - maximum overhead to encode a block (up to
@@ -583,9 +585,9 @@ const (
const (
// Max size of commit without any commitSigs -> 82 for BlockID, 8 for Height, 4 for Round.
MaxCommitOverheadBytes int64 = 94
// Commit sig size is made up of 32 bytes for the signature, 20 bytes for the address,
// Commit sig size is made up of 64 bytes for the signature, 20 bytes for the address,
// 1 byte for the flag and 14 bytes for the timestamp
MaxCommitSigBytes int64 = 77
MaxCommitSigBytes int64 = 109
)
// CommitSig is a part of the Vote included in a Commit.