From b11533016654852be9ba95b47a0d47fd74f580fb Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Thu, 10 Sep 2020 15:42:17 -0400 Subject: [PATCH] Use newest network version in genesiss setup stuff --- chain/gen/genesis/genesis.go | 2 +- chain/gen/genesis/miners.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chain/gen/genesis/genesis.go b/chain/gen/genesis/genesis.go index 3035d3a11..0a9d58924 100644 --- a/chain/gen/genesis/genesis.go +++ b/chain/gen/genesis/genesis.go @@ -407,7 +407,7 @@ func VerifyPreSealedData(ctx context.Context, cs *store.ChainStore, stateroot ci var sum abi.PaddedPieceSize nwv := func(context.Context, abi.ChainEpoch) network.Version { - return network.Version1 + return build.NewestNetworkVersion } vmopt := vm.VMOpts{ diff --git a/chain/gen/genesis/miners.go b/chain/gen/genesis/miners.go index 4a352b7b7..b57608a5f 100644 --- a/chain/gen/genesis/miners.go +++ b/chain/gen/genesis/miners.go @@ -6,6 +6,8 @@ import ( "fmt" "math/rand" + "github.com/filecoin-project/lotus/build" + "github.com/filecoin-project/go-state-types/network" "github.com/filecoin-project/lotus/chain/state" @@ -64,7 +66,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid } nwv := func(context.Context, abi.ChainEpoch) network.Version { - return network.Version1 + return build.NewestNetworkVersion } vmopt := &vm.VMOpts{