crank the part size; prioritize data channel

This commit is contained in:
Ethan Buchman
2016-03-10 20:20:07 -05:00
parent 898f44ddda
commit 5e42c96267
4 changed files with 8 additions and 6 deletions

View File

@@ -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
}