From 54695c6f8c7b6095c3d9d6cd17f0cb080d33b08f Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Fri, 1 Oct 2021 15:39:45 -0400 Subject: [PATCH] Extend FaultMaxAge to 6 weeks for actors v6 on test networks only --- build/params_2k.go | 4 ++++ build/params_butterfly.go | 4 ++++ build/params_calibnet.go | 4 ++++ build/params_interop.go | 4 ++++ build/params_nerpanet.go | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/build/params_2k.go b/build/params_2k.go index 1c009b7e8..33d9d50ef 100644 --- a/build/params_2k.go +++ b/build/params_2k.go @@ -11,6 +11,7 @@ import ( "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/lotus/chain/actors/policy" + miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner" ) const BootstrappersFile = "" @@ -87,6 +88,9 @@ func init() { UpgradeChocolateHeight = getUpgradeHeight("LOTUS_CHOCOLATE_HEIGHT", UpgradeChocolateHeight) BuildType |= Build2k + + // To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190 + miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42 } const BlockDelaySecs = uint64(4) diff --git a/build/params_butterfly.go b/build/params_butterfly.go index aa7e5c120..31bf97927 100644 --- a/build/params_butterfly.go +++ b/build/params_butterfly.go @@ -8,6 +8,7 @@ import ( "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/lotus/chain/actors/policy" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" + miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner" "github.com/ipfs/go-cid" ) @@ -50,6 +51,9 @@ func init() { Devnet = true BuildType = BuildButterflynet + + // To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190 + miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42 } const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds) diff --git a/build/params_calibnet.go b/build/params_calibnet.go index 8c870aadf..31d0e1b86 100644 --- a/build/params_calibnet.go +++ b/build/params_calibnet.go @@ -8,6 +8,7 @@ import ( "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/lotus/chain/actors/policy" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" + miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner" "github.com/ipfs/go-cid" ) @@ -63,6 +64,9 @@ func init() { Devnet = true BuildType = BuildCalibnet + + // To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190 + miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42 } const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds) diff --git a/build/params_interop.go b/build/params_interop.go index 201268492..f3c51d5a6 100644 --- a/build/params_interop.go +++ b/build/params_interop.go @@ -12,6 +12,7 @@ import ( "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" + miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner" "github.com/filecoin-project/lotus/chain/actors/policy" ) @@ -94,6 +95,9 @@ func init() { BuildType |= BuildInteropnet SetAddressNetwork(address.Testnet) Devnet = true + + // To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190 + miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42 } const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds) diff --git a/build/params_nerpanet.go b/build/params_nerpanet.go index 8972a8752..6854d3bd3 100644 --- a/build/params_nerpanet.go +++ b/build/params_nerpanet.go @@ -9,6 +9,7 @@ import ( "github.com/ipfs/go-cid" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" + miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner" ) var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ @@ -71,6 +72,9 @@ func init() { Devnet = false BuildType = BuildNerpanet + + // To test out what this proposal would like on devnets / testnets: https://github.com/filecoin-project/FIPs/pull/190 + miner6.FaultMaxAge = miner6.WPoStProvingPeriod * 42 } const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)