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

Commit

Permalink
Add support for Tendermint custom reactors https://pkg.go.dev/github.…
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanchovski committed Apr 2, 2021
1 parent 57ad4a4 commit d562fb8
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 @@ -47,7 +47,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 @@ -67,7 +67,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 d562fb8

Please sign in to comment.