EnableLargeSectors: restore previous supported proof types.
This commit is contained in:
@@ -15,7 +15,7 @@ func TestStorageDealMissingBlock(t *testing.T) {
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// enable 512MiB proofs so we can conduct larger transfers.
|
// enable 512MiB proofs so we can conduct larger transfers.
|
||||||
kit.EnableLargeSectors()
|
kit.EnableLargeSectors(t)
|
||||||
kit.QuietMiningLogs()
|
kit.QuietMiningLogs()
|
||||||
|
|
||||||
client, miner, ens := kit.EnsembleMinimal(t,
|
client, miner, ens := kit.EnsembleMinimal(t,
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package kit
|
package kit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/filecoin-project/go-state-types/abi"
|
"github.com/filecoin-project/go-state-types/abi"
|
||||||
|
|
||||||
"github.com/filecoin-project/lotus/chain/actors/policy"
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
||||||
@@ -8,9 +10,14 @@ import (
|
|||||||
|
|
||||||
// EnableLargeSectors enables 512MiB sectors. This is useful in combination with
|
// EnableLargeSectors enables 512MiB sectors. This is useful in combination with
|
||||||
// mock proofs, for testing larger transfers.
|
// mock proofs, for testing larger transfers.
|
||||||
func EnableLargeSectors() {
|
func EnableLargeSectors(t *testing.T) {
|
||||||
policy.SetSupportedProofTypes(
|
policy.SetSupportedProofTypes(
|
||||||
abi.RegisteredSealProof_StackedDrg2KiBV1,
|
abi.RegisteredSealProof_StackedDrg2KiBV1,
|
||||||
abi.RegisteredSealProof_StackedDrg512MiBV1, // <==
|
abi.RegisteredSealProof_StackedDrg512MiBV1, // <== here
|
||||||
)
|
)
|
||||||
|
t.Cleanup(func() { // reset when done.
|
||||||
|
policy.SetSupportedProofTypes(
|
||||||
|
abi.RegisteredSealProof_StackedDrg2KiBV1,
|
||||||
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user