fix default proof type to use for non-genesis miners.
We need to instantiate non-genesis miners with a _concrete_ proof type.
This commit is contained in:
parent
4c2cc8e5f7
commit
5548541e1a
@ -26,7 +26,6 @@ import (
|
|||||||
miner2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/miner"
|
miner2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/miner"
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
cbor "github.com/ipfs/go-ipld-cbor"
|
cbor "github.com/ipfs/go-ipld-cbor"
|
||||||
logging "github.com/ipfs/go-log/v2"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -57,11 +56,8 @@ func TestDeadlineToggling(t *testing.T) {
|
|||||||
if os.Getenv("LOTUS_TEST_DEADLINE_TOGGLING") != "1" {
|
if os.Getenv("LOTUS_TEST_DEADLINE_TOGGLING") != "1" {
|
||||||
t.Skip("this takes a few minutes, set LOTUS_TEST_DEADLINE_TOGGLING=1 to run")
|
t.Skip("this takes a few minutes, set LOTUS_TEST_DEADLINE_TOGGLING=1 to run")
|
||||||
}
|
}
|
||||||
_ = logging.SetLogLevel("miner", "ERROR")
|
|
||||||
_ = logging.SetLogLevel("chainstore", "ERROR")
|
kit2.QuietMiningLogs()
|
||||||
_ = logging.SetLogLevel("chain", "ERROR")
|
|
||||||
_ = logging.SetLogLevel("sub", "ERROR")
|
|
||||||
_ = logging.SetLogLevel("storageminer", "FATAL")
|
|
||||||
|
|
||||||
const sectorsC, sectorsD, sectorsB = 10, 9, 8
|
const sectorsC, sectorsD, sectorsB = 10, 9, 8
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ type ensembleOpts struct {
|
|||||||
|
|
||||||
var DefaultEnsembleOpts = ensembleOpts{
|
var DefaultEnsembleOpts = ensembleOpts{
|
||||||
pastOffset: 10000000 * time.Second, // time sufficiently in the past to trigger catch-up mining.
|
pastOffset: 10000000 * time.Second, // time sufficiently in the past to trigger catch-up mining.
|
||||||
proofType: abi.RegisteredSealProof_StackedDrg2KiBV1,
|
proofType: abi.RegisteredSealProof_StackedDrg2KiBV1_1, // default _concrete_ proof type for non-genesis miners (notice the _1).
|
||||||
}
|
}
|
||||||
|
|
||||||
func ProofType(proofType abi.RegisteredSealProof) EnsembleOpt {
|
func ProofType(proofType abi.RegisteredSealProof) EnsembleOpt {
|
||||||
|
@ -87,5 +87,4 @@ func SDRUpgradeAt(calico, persian abi.ChainEpoch) node.Option {
|
|||||||
Network: network.Version8,
|
Network: network.Version8,
|
||||||
Height: persian,
|
Height: persian,
|
||||||
}})
|
}})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user