fix sync tests

This commit is contained in:
whyrusleeping 2019-12-09 22:17:15 +01:00
parent f16756cc54
commit e27217c6a1
6 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ const InteractivePoRepDelay = 2
const InteractivePoRepConfidence = 6
// Bytes
const MinimumMinerPower = 2 << 10 // 2KiB
var MinimumMinerPower uint64 = 2 << 10 // 2KiB
func init() {
os.Setenv("TRUST_PARAMS", "1")

View File

@ -33,4 +33,4 @@ const InteractivePoRepDelay = 8
const InteractivePoRepConfidence = 6
// Bytes
const MinimumMinerPower = 20 << 30 // 20GB
var MinimumMinerPower uint64 = 20 << 30 // 20GB

View File

@ -8,6 +8,7 @@ import (
func init() {
build.SectorSizes = []uint64{1024}
build.MinimumMinerPower = 1024
}
func testGeneration(t testing.TB, n int, msgs int) {

View File

@ -28,6 +28,7 @@ func init() {
build.InsecurePoStValidation = true
os.Setenv("TRUST_PARAMS", "1")
build.SectorSizes = []uint64{1024}
build.MinimumMinerPower = 1024
}
const source = 0

View File

@ -507,8 +507,6 @@ func (sb *SectorBuilder) SealPreCommit(sectorID uint64, ticket SealTicket, piece
return RawSealPreCommitOutput{}, xerrors.Errorf("presealing sector %d (%s): %w", sectorID, stagedPath, err)
}
log.Infof("PRECOMMIT FFI RSPCO %v", rspco)
return RawSealPreCommitOutput(rspco), nil
}

View File

@ -43,6 +43,7 @@ func init() {
_ = logging.SetLogLevel("*", "INFO")
build.SectorSizes = []uint64{1024}
build.MinimumMinerPower = 1024
}
func testStorageNode(ctx context.Context, t *testing.T, waddr address.Address, act address.Address, pk crypto.PrivKey, tnd test.TestNode, mn mocknet.Mocknet) test.TestStorageNode {