diff --git a/cmd/tendermint/commands/run_node.go b/cmd/tendermint/commands/run_node.go index d4acd98d..3befae27 100644 --- a/cmd/tendermint/commands/run_node.go +++ b/cmd/tendermint/commands/run_node.go @@ -43,6 +43,8 @@ func AddNodeFlags(cmd *cobra.Command) { // It allows other projects to make Tendermint binaries with custom signers and applications. type FuncSignerAndApp func(*cfg.Config) (types.PrivValidator, proxy.ClientCreator) +// DefaultSignerAndApp is a default FuncSignerAndApp that returns a PrivValidatorFS +// and a DefaultClientCreator using the relevant fields from the config. func DefaultSignerAndApp(config *cfg.Config) (types.PrivValidator, proxy.ClientCreator) { privValidator := types.LoadOrGenPrivValidatorFS(config.PrivValidatorFile()) clientCreator := proxy.DefaultClientCreator(config.ProxyApp, config.ABCI, config.DBDir()) diff --git a/cmd/tendermint/main.go b/cmd/tendermint/main.go index 7cc1b218..1e2c0005 100644 --- a/cmd/tendermint/main.go +++ b/cmd/tendermint/main.go @@ -27,7 +27,7 @@ func main() { // * Use an external signer for their validators // * Supply an in-proc abci app // can copy this file and use something other than the - // default SignerAndApp function + // DefaultSignerAndApp function signerAndApp := cmd.DefaultSignerAndApp // Create & start node