mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-24 16:51:58 +00:00
crank the part size; prioritize data channel
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
partSize = 4096 // 4KB
|
||||
partSize = 65536 // 64KB ... 4096 // 4KB
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -203,6 +203,7 @@ func (ps *PartSet) AddPart(part *Part) (bool, error) {
|
||||
}
|
||||
|
||||
// Check hash proof
|
||||
// TODO: minor gains for not checking part sets we made
|
||||
if !part.Proof.Verify(part.Index, ps.total, part.Hash(), ps.Hash()) {
|
||||
return false, ErrPartSetInvalidProof
|
||||
}
|
||||
|
Reference in New Issue
Block a user