Merge pull request #5510 from filecoin-project/asr/nerpanet
Create a nerpanet build option
This commit is contained in:
commit
c678822490
3
Makefile
3
Makefile
@ -66,6 +66,9 @@ debug: lotus lotus-miner lotus-worker lotus-seed
|
|||||||
calibnet: GOFLAGS+=-tags=calibnet
|
calibnet: GOFLAGS+=-tags=calibnet
|
||||||
calibnet: lotus lotus-miner lotus-worker lotus-seed
|
calibnet: lotus lotus-miner lotus-worker lotus-seed
|
||||||
|
|
||||||
|
nerpanet: GOFLAGS+=-tags=nerpanet
|
||||||
|
nerpanet: lotus lotus-miner lotus-worker lotus-seed
|
||||||
|
|
||||||
lotus: $(BUILD_DEPS)
|
lotus: $(BUILD_DEPS)
|
||||||
rm -f lotus
|
rm -f lotus
|
||||||
go build $(GOFLAGS) -o lotus ./cmd/lotus
|
go build $(GOFLAGS) -o lotus ./cmd/lotus
|
||||||
|
4
build/bootstrap/nerpanet.pi
Normal file
4
build/bootstrap/nerpanet.pi
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/dns4/bootstrap-0.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWNfuGjtzWTVz8eJGZ2C3aJg2xLqorhsagu4LTWw6CwpK9
|
||||||
|
/dns4/bootstrap-1.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWDfsxYk7dC6NNsHqZqqyMJCzkjZuXhjsmqBk3TUCBZLga
|
||||||
|
/dns4/bootstrap-2.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWRZAGHmCCaa2gkYmnC4Q2TEwHGFSh6Fh1FFJ7RSXak5yN
|
||||||
|
/dns4/bootstrap-3.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWBFxEigSKLvxJVdw3JziC9ePHHnyAn5LifWSqg2kttcth
|
BIN
build/genesis/nerpanet.car
Normal file
BIN
build/genesis/nerpanet.car
Normal file
Binary file not shown.
@ -28,9 +28,6 @@ var UpgradeActorsV2Height = abi.ChainEpoch(30)
|
|||||||
|
|
||||||
const UpgradeTapeHeight = 60
|
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 UpgradeLiftoffHeight = -5
|
||||||
|
|
||||||
const UpgradeKumquatHeight = 90
|
const UpgradeKumquatHeight = 90
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// +build !2k
|
// +build !2k
|
||||||
// +build !testground
|
// +build !testground
|
||||||
// +build !calibnet
|
// +build !calibnet
|
||||||
|
// +build !nerpanet
|
||||||
|
|
||||||
package build
|
package build
|
||||||
|
|
||||||
|
74
build/params_nerpanet.go
Normal file
74
build/params_nerpanet.go
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
// +build nerpanet
|
||||||
|
|
||||||
|
package build
|
||||||
|
|
||||||
|
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"
|
||||||
|
)
|
||||||
|
|
||||||
|
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||||
|
0: DrandMainnet,
|
||||||
|
}
|
||||||
|
|
||||||
|
const BootstrappersFile = "nerpanet.pi"
|
||||||
|
const GenesisFile = "nerpanet.car"
|
||||||
|
|
||||||
|
const UpgradeBreezeHeight = -1
|
||||||
|
const BreezeGasTampingDuration = 0
|
||||||
|
|
||||||
|
const UpgradeSmokeHeight = -1
|
||||||
|
|
||||||
|
const UpgradeIgnitionHeight = -2
|
||||||
|
const UpgradeRefuelHeight = -3
|
||||||
|
|
||||||
|
const UpgradeTapeHeight = -4
|
||||||
|
|
||||||
|
const UpgradeLiftoffHeight = -5
|
||||||
|
const UpgradeActorsV2Height = 120 // critical: the network can bootstrap from v1 only
|
||||||
|
|
||||||
|
const UpgradeKumquatHeight = -6
|
||||||
|
|
||||||
|
const UpgradeCalicoHeight = 999999999
|
||||||
|
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 60)
|
||||||
|
|
||||||
|
const UpgradeOrangeHeight = 9999999999
|
||||||
|
|
||||||
|
// 2020-12-22T02:00:00Z
|
||||||
|
const UpgradeClausHeight = 99999999999
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
const UpgradeActorsV3Height = 999999999999
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user