Upgrade tendermint to 0.28.0-dev0 (#3279)

This commit is contained in:
Alessio Treglia
2019-01-11 09:19:01 -08:00
committed by Jack Zampolin
parent 05d53894a3
commit df567616a9
13 changed files with 65 additions and 42 deletions
+5 -2
View File
@@ -3,11 +3,13 @@ package main
import (
"encoding/json"
"fmt"
"github.com/cosmos/cosmos-sdk/store"
"io"
"os"
"github.com/cosmos/cosmos-sdk/store"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval"
"github.com/cosmos/cosmos-sdk/baseapp"
gaiaInit "github.com/cosmos/cosmos-sdk/cmd/gaia/init"
@@ -78,7 +80,8 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command {
}
nodeID := string(nodeKey.ID())
pk := gaiaInit.ReadOrCreatePrivValidator(config.PrivValidatorFile())
pk := privval.LoadOrGenFilePV(config.PrivValidatorKeyFile(),
config.PrivValidatorStateFile()).GetPubKey()
genTx, appMessage, validator, err := server.SimpleAppGenTx(cdc, pk)
if err != nil {
return err
+3 -1
View File
@@ -9,6 +9,7 @@ import (
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval"
"github.com/cosmos/cosmos-sdk/client"
@@ -81,7 +82,8 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command {
}
nodeID := string(nodeKey.ID())
pk := gaiaInit.ReadOrCreatePrivValidator(config.PrivValidatorFile())
pk := privval.LoadOrGenFilePV(config.PrivValidatorKeyFile(),
config.PrivValidatorStateFile()).GetPubKey()
genTx, appMessage, validator, err := server.SimpleAppGenTx(cdc, pk)
if err != nil {
return err