Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1478 from nmanchovski/custom-reactors-support
Browse files Browse the repository at this point in the history
Add support for Tendermint custom reactors https://pkg.go.dev/github.…
  • Loading branch information
Silas Davis authored Apr 5, 2021
2 parents b193c90 + b059615 commit aad850b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions consensus/tendermint/tendermint.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (n *Node) Close() {
}

func NewNode(conf *config.Config, privValidator tmTypes.PrivValidator, genesisDoc *tmTypes.GenesisDoc,
app *abci.App, metricsProvider node.MetricsProvider, logger *logging.Logger) (*Node, error) {
app *abci.App, metricsProvider node.MetricsProvider, logger *logging.Logger, options ...node.Option) (*Node, error) {

var err error
// disable Tendermint's RPC
Expand All @@ -77,7 +77,8 @@ func NewNode(conf *config.Config, privValidator tmTypes.PrivValidator, genesisDo
nde.DBProvider,
metricsProvider,
NewLogger(logger.WithPrefix(structure.ComponentKey, structure.Tendermint).
With(structure.ScopeKey, "tendermint.NewNode")))
With(structure.ScopeKey, "tendermint.NewNode")),
options...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit aad850b

Please sign in to comment.