Merge pull request #8755 from filecoin-project/jen/devnetver
fix: build: use the genesis network version when creating a network
This commit is contained in:
commit
8212b2c5d9
@ -51,7 +51,7 @@ var UpgradeHyperdriveHeight = abi.ChainEpoch(-16)
|
|||||||
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
||||||
|
|
||||||
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
||||||
var UpgradeSkyrHeight = abi.ChainEpoch(-19)
|
var UpgradeSkyrHeight = abi.ChainEpoch(100)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ var genesisNewCmd = &cli.Command{
|
|||||||
return xerrors.New("seed genesis new [genesis.json]")
|
return xerrors.New("seed genesis new [genesis.json]")
|
||||||
}
|
}
|
||||||
out := genesis.Template{
|
out := genesis.Template{
|
||||||
NetworkVersion: build.NewestNetworkVersion,
|
NetworkVersion: build.GenesisNetworkVersion,
|
||||||
Accounts: []genesis.Actor{},
|
Accounts: []genesis.Actor{},
|
||||||
Miners: []genesis.Miner{},
|
Miners: []genesis.Miner{},
|
||||||
VerifregRootKey: gen.DefaultVerifregRootkeyActor,
|
VerifregRootKey: gen.DefaultVerifregRootkeyActor,
|
||||||
|
@ -97,7 +97,7 @@ var preSealCmd = &cli.Command{
|
|||||||
&cli.UintFlag{
|
&cli.UintFlag{
|
||||||
Name: "network-version",
|
Name: "network-version",
|
||||||
Usage: "specify network version",
|
Usage: "specify network version",
|
||||||
Value: uint(build.NewestNetworkVersion),
|
Value: uint(build.GenesisNetworkVersion),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
@ -134,7 +134,7 @@ var preSealCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
sectorSize := abi.SectorSize(sectorSizeInt)
|
sectorSize := abi.SectorSize(sectorSizeInt)
|
||||||
|
|
||||||
nv := build.NewestNetworkVersion
|
nv := build.GenesisNetworkVersion
|
||||||
if c.IsSet("network-version") {
|
if c.IsSet("network-version") {
|
||||||
nv = network.Version(c.Uint64("network-version"))
|
nv = network.Version(c.Uint64("network-version"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user