Use newest network version in genesiss setup stuff

This commit is contained in:
Aayush Rajasekaran 2020-09-10 15:42:17 -04:00
parent 4170e18dea
commit 98a9042c07
2 changed files with 4 additions and 2 deletions

View File

@ -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{

View File

@ -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{