Skip to content

Commit

Permalink
apply suggestions from code review #2
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Aug 23, 2019
1 parent 8a5c4b3 commit c34dbb3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cosmos/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewNode(app *App, cfg *tmconfig.Config, ccfg *config.CosmosConfig) (*node.N
}

// init node
node, err := node.NewNode(
return node.NewNode(
cfg,
privval.LoadOrGenFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()),
nodeKey,
Expand All @@ -70,11 +70,6 @@ func NewNode(app *App, cfg *tmconfig.Config, ccfg *config.CosmosConfig) (*node.N
node.DefaultMetricsProvider(cfg.Instrumentation),
logger.TendermintLogger(),
)
if err != nil {
return nil, err
}

return node, nil
}

func createAppState(defaultGenesisŚtate map[string]json.RawMessage, cdc *codec.Codec, address sdktypes.AccAddress, signedStdTx authtypes.StdTx) (map[string]json.RawMessage, error) {
Expand Down

0 comments on commit c34dbb3

Please sign in to comment.