Add butterfly network
This commit is contained in:
parent
61eb91ff37
commit
76349510eb
3
Makefile
3
Makefile
@ -75,6 +75,9 @@ calibnet: lotus lotus-miner lotus-worker lotus-seed
|
|||||||
nerpanet: GOFLAGS+=-tags=nerpanet
|
nerpanet: GOFLAGS+=-tags=nerpanet
|
||||||
nerpanet: lotus lotus-miner lotus-worker lotus-seed
|
nerpanet: lotus lotus-miner lotus-worker lotus-seed
|
||||||
|
|
||||||
|
butterflynet: GOFLAGS+=-tags=butterflynet
|
||||||
|
butterflynet: 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
|
||||||
|
2
build/bootstrap/butterflynet.pi
Normal file
2
build/bootstrap/butterflynet.pi
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/dns4/bootstrap-0.butterfly.fildev.network/tcp/1347/p2p/12D3KooWEL9FZVJLzMLMdmyWohJ3y89Z8TaRtZM8Zyya9CVsQNXy
|
||||||
|
/dns4/bootstrap-1.butterfly.fildev.network/tcp/1347/p2p/12D3KooWKzWqz87PZXffnbBuP3kEZuQ4qcUymN6SBTFhQTMfsoNY
|
52
build/params_butterfly.go
Normal file
52
build/params_butterfly.go
Normal file
@ -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
|
@ -3,6 +3,7 @@
|
|||||||
// +build !testground
|
// +build !testground
|
||||||
// +build !calibnet
|
// +build !calibnet
|
||||||
// +build !nerpanet
|
// +build !nerpanet
|
||||||
|
// +build !butterflynet
|
||||||
|
|
||||||
package build
|
package build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user