Skip to content

Commit

Permalink
backports PR 1289
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Apr 12, 2024
1 parent 9c7b49f commit 6d892ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion consensus/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,8 @@ func TestNewValidBlockMessageValidateBasic(t *testing.T) {
},
{
func(msg *NewValidBlockMessage) { msg.BlockParts = bits.NewBitArray(int(types.MaxBlockPartsCount) + 1) },
"blockParts bit array size 1602 not equal to BlockPartSetHeader.Total 1",
fmt.Sprintf("blockParts bit array size %d not equal to"+
" BlockPartSetHeader.Total 1", types.MaxBlockPartsCount+1),
},
}

Expand Down
2 changes: 1 addition & 1 deletion types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

const (
// MaxBlockSizeBytes is the maximum permitted size of the blocks.
MaxBlockSizeBytes = 104857600 // 100MB
MaxBlockSizeBytes = 128 * 1024 * 1024 // 128 MiB

// BlockPartSizeBytes is the size of one block part.
BlockPartSizeBytes uint32 = 65536 // 64kB
Expand Down

0 comments on commit 6d892ab

Please sign in to comment.