From 76349510ebd14c1fc9ead528ea633592387db537 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Thu, 28 Jan 2021 18:15:04 +0000 Subject: [PATCH] Add butterfly network --- Makefile | 3 ++ build/bootstrap/butterflynet.pi | 2 ++ build/params_butterfly.go | 52 +++++++++++++++++++++++++++++++++ build/params_mainnet.go | 1 + 4 files changed, 58 insertions(+) create mode 100644 build/bootstrap/butterflynet.pi create mode 100644 build/params_butterfly.go diff --git a/Makefile b/Makefile index 2d616b9ab..0fd1d7a92 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,9 @@ calibnet: lotus lotus-miner lotus-worker lotus-seed nerpanet: GOFLAGS+=-tags=nerpanet nerpanet: lotus lotus-miner lotus-worker lotus-seed +butterflynet: GOFLAGS+=-tags=butterflynet +butterflynet: lotus lotus-miner lotus-worker lotus-seed + lotus: $(BUILD_DEPS) rm -f lotus go build $(GOFLAGS) -o lotus ./cmd/lotus diff --git a/build/bootstrap/butterflynet.pi b/build/bootstrap/butterflynet.pi new file mode 100644 index 000000000..dc3603e59 --- /dev/null +++ b/build/bootstrap/butterflynet.pi @@ -0,0 +1,2 @@ +/dns4/bootstrap-0.butterfly.fildev.network/tcp/1347/p2p/12D3KooWEL9FZVJLzMLMdmyWohJ3y89Z8TaRtZM8Zyya9CVsQNXy +/dns4/bootstrap-1.butterfly.fildev.network/tcp/1347/p2p/12D3KooWKzWqz87PZXffnbBuP3kEZuQ4qcUymN6SBTFhQTMfsoNY diff --git a/build/params_butterfly.go b/build/params_butterfly.go new file mode 100644 index 000000000..f7bf8aa10 --- /dev/null +++ b/build/params_butterfly.go @@ -0,0 +1,52 @@ +// +build butterflynet + +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 = "butterflynet.pi" +const GenesisFile = "butterflynet.car" + +const UpgradeBreezeHeight = -1 +const BreezeGasTampingDuration = 120 +const UpgradeSmokeHeight = -2 +const UpgradeIgnitionHeight = -3 +const UpgradeRefuelHeight = -4 + +var UpgradeActorsV2Height = abi.ChainEpoch(30) + +const UpgradeTapeHeight = 60 +const UpgradeLiftoffHeight = -5 +const UpgradeKumquatHeight = 90 +const UpgradeCalicoHeight = 120 +const UpgradePersianHeight = 150 +const UpgradeClausHeight = 180 +const UpgradeOrangeHeight = 210 +const UpgradeActorsV3Height = 240 + +func init() { + policy.SetConsensusMinerMinPower(abi.NewStoragePower(2 << 30)) + policy.SetSupportedProofTypes( + abi.RegisteredSealProof_StackedDrg512MiBV1, + ) + + 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 = 2 diff --git a/build/params_mainnet.go b/build/params_mainnet.go index 2992a39f3..a3389eb3c 100644 --- a/build/params_mainnet.go +++ b/build/params_mainnet.go @@ -3,6 +3,7 @@ // +build !testground // +build !calibnet // +build !nerpanet +// +build !butterflynet package build