From f7b0bbf0d8b152b14e05fccb2ce5fdd1ad95ab75 Mon Sep 17 00:00:00 2001 From: Jennifer Wang Date: Mon, 30 May 2022 12:58:00 -0400 Subject: [PATCH] fix genesis miner netwokr version --- build/params_2k.go | 5 +++++ cmd/lotus-seed/genesis.go | 2 +- cmd/lotus-seed/main.go | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build/params_2k.go b/build/params_2k.go index 60006cede..65e12dfc0 100644 --- a/build/params_2k.go +++ b/build/params_2k.go @@ -11,6 +11,7 @@ import ( "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/network" + "github.com/filecoin-project/lotus/chain/actors" "github.com/filecoin-project/lotus/chain/actors/policy" ) @@ -49,6 +50,10 @@ var UpgradeChocolateHeight = abi.ChainEpoch(-17) var UpgradeOhSnapHeight = abi.ChainEpoch(-18) +var UpgradeSkyrHeight = abi.ChainEpoch(100) + +var ActorsCIDs = map[actors.Version]cid.Cid{} + var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ 0: DrandMainnet, } diff --git a/cmd/lotus-seed/genesis.go b/cmd/lotus-seed/genesis.go index 89feec33a..5f2280f5f 100644 --- a/cmd/lotus-seed/genesis.go +++ b/cmd/lotus-seed/genesis.go @@ -59,7 +59,7 @@ var genesisNewCmd = &cli.Command{ return xerrors.New("seed genesis new [genesis.json]") } out := genesis.Template{ - NetworkVersion: build.NewestNetworkVersion, + NetworkVersion: build.GenesisNetworkVersion, Accounts: []genesis.Actor{}, Miners: []genesis.Miner{}, VerifregRootKey: gen.DefaultVerifregRootkeyActor, diff --git a/cmd/lotus-seed/main.go b/cmd/lotus-seed/main.go index 317f2965f..ce8b87df9 100644 --- a/cmd/lotus-seed/main.go +++ b/cmd/lotus-seed/main.go @@ -97,7 +97,7 @@ var preSealCmd = &cli.Command{ &cli.UintFlag{ Name: "network-version", Usage: "specify network version", - Value: uint(build.NewestNetworkVersion), + Value: uint(build.GenesisNetworkVersion), }, }, Action: func(c *cli.Context) error { @@ -134,7 +134,7 @@ var preSealCmd = &cli.Command{ } sectorSize := abi.SectorSize(sectorSizeInt) - nv := build.NewestNetworkVersion + nv := build.GenesisNetworkVersion if c.IsSet("network-version") { nv = network.Version(c.Uint64("network-version")) }