Skip to content

Commit

Permalink
Use newest network version in genesiss setup stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Sep 10, 2020
1 parent 0c67855 commit b115330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chain/gen/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 3 additions & 1 deletion chain/gen/genesis/miners.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit b115330

Please sign in to comment.