Browse Source

fix some comments

pull/637/head
Ethan Buchman 7 years ago
parent
commit
147a18b34a
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      cmd/tendermint/commands/run_node.go
  2. +1
    -1
      cmd/tendermint/main.go

+ 2
- 0
cmd/tendermint/commands/run_node.go View File

@ -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())


+ 1
- 1
cmd/tendermint/main.go View File

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


Loading…
Cancel
Save