-
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 #5288 from filecoin-project/asr/unify-networks
Create a calibnet build option
- Loading branch information
Showing
11 changed files
with
89 additions
and
21 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
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,4 @@ | ||
/dns4/bootstrap-0.calibration.fildev.network/tcp/1347/p2p/12D3KooWK1QYsm6iqyhgH7vqsbeoNoKHbT368h1JLHS1qYN36oyc | ||
/dns4/bootstrap-1.calibration.fildev.network/tcp/1347/p2p/12D3KooWKDyJZoPsNak1iYNN1GGmvGnvhyVbWBL6iusYfP3RpgYs | ||
/dns4/bootstrap-2.calibration.fildev.network/tcp/1347/p2p/12D3KooWJRSTnzABB6MYYEBbSTT52phQntVD1PpRTMh1xt9mh6yH | ||
/dns4/bootstrap-3.calibration.fildev.network/tcp/1347/p2p/12D3KooWQLi3kY6HnMYLUtwCe26zWMdNhniFgHVNn1DioQc7NiWv |
File renamed without changes.
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.
File renamed without changes.
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,64 @@ | ||
// +build calibnet | ||
|
||
package build | ||
|
||
import ( | ||
"github.com/filecoin-project/go-address" | ||
"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" | ||
) | ||
|
||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ | ||
0: DrandMainnet, | ||
} | ||
|
||
const BootstrappersFile = "calibnet.pi" | ||
const GenesisFile = "calibnet.car" | ||
|
||
const UpgradeBreezeHeight = -1 | ||
const BreezeGasTampingDuration = 120 | ||
|
||
const UpgradeSmokeHeight = -2 | ||
|
||
const UpgradeIgnitionHeight = -3 | ||
const UpgradeRefuelHeight = -4 | ||
|
||
var UpgradeActorsV2Height = abi.ChainEpoch(30) | ||
|
||
const UpgradeTapeHeight = 60 | ||
|
||
// This signals our tentative epoch for mainnet launch. Can make it later, but not earlier. | ||
// Miners, clients, developers, custodians all need time to prepare. | ||
// We still have upgrades and state changes to do, but can happen after signaling timing here. | ||
const UpgradeLiftoffHeight = -5 | ||
|
||
const UpgradeKumquatHeight = 90 | ||
|
||
const UpgradeCalicoHeight = 92000 | ||
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 60) | ||
|
||
// 2020-12-17T19:00:00Z | ||
const UpgradeClausHeight = 161386 | ||
|
||
const UpgradeOrangeHeight = 9999999 | ||
|
||
func init() { | ||
policy.SetConsensusMinerMinPower(abi.NewStoragePower(10 << 30)) | ||
policy.SetSupportedProofTypes( | ||
abi.RegisteredSealProof_StackedDrg512MiBV1, | ||
abi.RegisteredSealProof_StackedDrg32GiBV1, | ||
abi.RegisteredSealProof_StackedDrg64GiBV1, | ||
) | ||
|
||
SetAddressNetwork(address.Testnet) | ||
|
||
Devnet = true | ||
} | ||
|
||
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 |
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