-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7492 from filecoin-project/jen/v1.13.0-rc3-prep
v1.13.0 rc3
- Loading branch information
Showing
29 changed files
with
250 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
//go:build nerpanet | ||
// +build nerpanet | ||
|
||
package build | ||
|
||
import ( | ||
"github.com/filecoin-project/go-state-types/abi" | ||
"github.com/filecoin-project/go-state-types/network" | ||
"github.com/filecoin-project/lotus/chain/actors/policy" | ||
"github.com/ipfs/go-cid" | ||
|
||
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" | ||
) | ||
|
||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ | ||
0: DrandMainnet, | ||
} | ||
|
||
const GenesisNetworkVersion = network.Version0 | ||
|
||
const BootstrappersFile = "nerpanet.pi" | ||
const GenesisFile = "nerpanet.car" | ||
|
||
const UpgradeBreezeHeight = -1 | ||
const BreezeGasTampingDuration = 0 | ||
|
||
const UpgradeSmokeHeight = -1 | ||
|
||
const UpgradeIgnitionHeight = -2 | ||
const UpgradeRefuelHeight = -3 | ||
|
||
const UpgradeLiftoffHeight = -5 | ||
|
||
const UpgradeAssemblyHeight = 30 // critical: the network can bootstrap from v1 only | ||
const UpgradeTapeHeight = 60 | ||
|
||
const UpgradeKumquatHeight = 90 | ||
|
||
const UpgradeCalicoHeight = 100 | ||
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 1) | ||
|
||
const UpgradeClausHeight = 250 | ||
|
||
const UpgradeOrangeHeight = 300 | ||
|
||
const UpgradeTrustHeight = 600 | ||
const UpgradeNorwegianHeight = 201000 | ||
const UpgradeTurboHeight = 203000 | ||
const UpgradeHyperdriveHeight = 379178 | ||
|
||
const UpgradeChocolateHeight = 999999999 | ||
|
||
func init() { | ||
// Minimum block production power is set to 4 TiB | ||
// Rationale is to discourage small-scale miners from trying to take over the network | ||
// One needs to invest in ~2.3x the compute to break consensus, making it not worth it | ||
// | ||
// DOWNSIDE: the fake-seals need to be kept alive/protected, otherwise network will seize | ||
// | ||
policy.SetConsensusMinerMinPower(abi.NewStoragePower(4 << 40)) | ||
|
||
policy.SetSupportedProofTypes( | ||
abi.RegisteredSealProof_StackedDrg512MiBV1, | ||
abi.RegisteredSealProof_StackedDrg32GiBV1, | ||
abi.RegisteredSealProof_StackedDrg64GiBV1, | ||
) | ||
|
||
// Lower the most time-consuming parts of PoRep | ||
policy.SetPreCommitChallengeDelay(10) | ||
|
||
// TODO - make this a variable | ||
//miner.WPoStChallengeLookback = abi.ChainEpoch(2) | ||
|
||
Devnet = false | ||
|
||
BuildType = BuildNerpanet | ||
|
||
} | ||
|
||
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds) | ||
|
||
const PropagationDelaySecs = uint64(6) | ||
|
||
// BootstrapPeerThreshold is the minimum number peers we need to track for a sync worker to start | ||
const BootstrapPeerThreshold = 4 | ||
|
||
var WhitelistedBlock = cid.Undef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.