examples installing

This commit is contained in:
rigelrozanski 2018-11-13 14:35:53 -05:00
parent 8069b2b7e6
commit 24468306b4
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"io"
"os"
"github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/p2p"
"github.com/cosmos/cosmos-sdk/baseapp"
@ -122,7 +123,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
return cmd
}
func newApp(logger log.Logger, db dbm.DB, storeTracer io.Writer) abci.Application {
func newApp(logger log.Logger, db dbm.DB, storeTracer io.Writer, _ node.GenesisDocProvider) abci.Application {
return app.NewBasecoinApp(logger, db, baseapp.SetPruning(viper.GetString("pruning")))
}

View File

@ -9,6 +9,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/p2p"
"github.com/spf13/cobra"
@ -129,7 +130,9 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
return cmd
}
func newApp(logger log.Logger, db dbm.DB, _ io.Writer) abci.Application {
func newApp(logger log.Logger, db dbm.DB, _ io.Writer,
_ node.GenesisDocProvider) abci.Application {
return app.NewDemocoinApp(logger, db)
}