diff --git a/build/params_debug.go b/build/params_debug.go index aaa58038b..938b03925 100644 --- a/build/params_debug.go +++ b/build/params_debug.go @@ -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") diff --git a/build/params_devnet.go b/build/params_devnet.go index ca356aff5..541d182db 100644 --- a/build/params_devnet.go +++ b/build/params_devnet.go @@ -33,4 +33,4 @@ const InteractivePoRepDelay = 8 const InteractivePoRepConfidence = 6 // Bytes -const MinimumMinerPower = 20 << 30 // 20GB +var MinimumMinerPower uint64 = 20 << 30 // 20GB diff --git a/chain/gen/gen_test.go b/chain/gen/gen_test.go index 3ab989e72..260259869 100644 --- a/chain/gen/gen_test.go +++ b/chain/gen/gen_test.go @@ -8,6 +8,7 @@ import ( func init() { build.SectorSizes = []uint64{1024} + build.MinimumMinerPower = 1024 } func testGeneration(t testing.TB, n int, msgs int) { diff --git a/chain/sync_test.go b/chain/sync_test.go index 30c770195..f9c62b93e 100644 --- a/chain/sync_test.go +++ b/chain/sync_test.go @@ -28,6 +28,7 @@ func init() { build.InsecurePoStValidation = true os.Setenv("TRUST_PARAMS", "1") build.SectorSizes = []uint64{1024} + build.MinimumMinerPower = 1024 } const source = 0 diff --git a/lib/sectorbuilder/sectorbuilder.go b/lib/sectorbuilder/sectorbuilder.go index c4fca12d4..5dcb2e551 100644 --- a/lib/sectorbuilder/sectorbuilder.go +++ b/lib/sectorbuilder/sectorbuilder.go @@ -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 } diff --git a/node/node_test.go b/node/node_test.go index 0fe2ac7f9..2cfc2b95c 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -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 {