Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ulbqb committed Feb 8, 2023
1 parent 7c5f488 commit 3b702c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blockchain/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestBlockchainMessageVectors(t *testing.T) {
BlockRequest: &tmbcproto.BlockRequest{Height: math.MaxInt64}}},
"0a0a08ffffffffffffffff7f"},
{"BlockResponseMessage", &bcproto.Message{Sum: &bcproto.Message_BlockResponse{
BlockResponse: &bcproto.BlockResponse{Block: bpb}}}, "1a740a720a5d0a04080b100b1803220b088092b8c398feffffff012a0212003a20c4da88e876062aa1543400d50d0eaa0dac88096057949cfb7bca7f3a48c04bf96a20e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855120d0a0b48656c6c6f20576f726c641a002a00"},
BlockResponse: &bcproto.BlockResponse{Block: bpb}}}, "1a750a730a5d0a04080b100b1803220b088092b8c398feffffff012a0212003a20c4da88e876062aa1543400d50d0eaa0dac88096057949cfb7bca7f3a48c04bf96a20e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855120d0a0b48656c6c6f20576f726c641a00c23e00"},
{"NoBlockResponseMessage", &bcproto.Message{Sum: &bcproto.Message_NoBlockResponse{
NoBlockResponse: &tmbcproto.NoBlockResponse{Height: 1}}}, "12020801"},
{"NoBlockResponseMessage", &bcproto.Message{Sum: &bcproto.Message_NoBlockResponse{
Expand Down
6 changes: 3 additions & 3 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const (
// capped in size and thus this number should be seen as a soft max
MaxHeaderBytes int64 = 626

// 🏺 Note that this value is the encoded size of the ProtocolBuffer. See TestMaxHeaderBytes() for how Tendermint
// 🏺 Note that this value is the encoded size of the ProtocolBuffer. See TestMaxEntropyBytes() for how Tendermint
// calculates this value. Add/remove Ostracon-specific field sizes to/from this heuristically determined constant.
MaxEntropyBytes int64 = 5 + // +Round
(2 + int64(vrf.ProofSize) + 1) // +Proof
MaxEntropyBytes int64 = (1 + 5) + // +Round
(2 + int64(vrf.ProofSize)) // +Proof

// MaxOverheadForBlock - maximum overhead to encode a block (up to
// MaxBlockSizeBytes in size) not including it's parts except Data.
Expand Down

0 comments on commit 3b702c3

Please sign in to comment.