fix sync tests
This commit is contained in:
parent
f16756cc54
commit
e27217c6a1
@ -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")
|
||||
|
@ -33,4 +33,4 @@ const InteractivePoRepDelay = 8
|
||||
const InteractivePoRepConfidence = 6
|
||||
|
||||
// Bytes
|
||||
const MinimumMinerPower = 20 << 30 // 20GB
|
||||
var MinimumMinerPower uint64 = 20 << 30 // 20GB
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
|
||||
func init() {
|
||||
build.SectorSizes = []uint64{1024}
|
||||
build.MinimumMinerPower = 1024
|
||||
}
|
||||
|
||||
func testGeneration(t testing.TB, n int, msgs int) {
|
||||
|
@ -28,6 +28,7 @@ func init() {
|
||||
build.InsecurePoStValidation = true
|
||||
os.Setenv("TRUST_PARAMS", "1")
|
||||
build.SectorSizes = []uint64{1024}
|
||||
build.MinimumMinerPower = 1024
|
||||
}
|
||||
|
||||
const source = 0
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user