fix some comments

This commit is contained in:
Ethan Buchman 2017-09-18 23:20:36 -04:00
parent 4382c8d28b
commit 147a18b34a
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ func AddNodeFlags(cmd *cobra.Command) {
// It allows other projects to make Tendermint binaries with custom signers and applications. // It allows other projects to make Tendermint binaries with custom signers and applications.
type FuncSignerAndApp func(*cfg.Config) (types.PrivValidator, proxy.ClientCreator) 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) { func DefaultSignerAndApp(config *cfg.Config) (types.PrivValidator, proxy.ClientCreator) {
privValidator := types.LoadOrGenPrivValidatorFS(config.PrivValidatorFile()) privValidator := types.LoadOrGenPrivValidatorFS(config.PrivValidatorFile())
clientCreator := proxy.DefaultClientCreator(config.ProxyApp, config.ABCI, config.DBDir()) clientCreator := proxy.DefaultClientCreator(config.ProxyApp, config.ABCI, config.DBDir())

View File

@ -27,7 +27,7 @@ func main() {
// * Use an external signer for their validators // * Use an external signer for their validators
// * Supply an in-proc abci app // * Supply an in-proc abci app
// can copy this file and use something other than the // can copy this file and use something other than the
// default SignerAndApp function // DefaultSignerAndApp function
signerAndApp := cmd.DefaultSignerAndApp signerAndApp := cmd.DefaultSignerAndApp
// Create & start node // Create & start node