We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6122a commit 481fd21Copy full SHA for 481fd21
rpc/test/helpers.go
@@ -27,6 +27,8 @@ import (
27
type Options struct {
28
suppressStdout bool
29
recreateConfig bool
30
+ // SpecificConfig will replace the global config if not nil
31
+ SpecificConfig *cfg.Config
32
}
33
34
var globalConfig *cfg.Config
@@ -151,7 +153,11 @@ func StopTendermint(node *nm.Node) {
151
153
// NewTendermint creates a new tendermint server and sleeps forever
152
154
func NewTendermint(app abci.Application, opts *Options) *nm.Node {
155
// Create & start node
156
+ if opts.SpecificConfig != nil {
157
+ globalConfig = opts.SpecificConfig
158
+ }
159
config := GetConfig(opts.recreateConfig)
160
+
161
var logger log.Logger
162
if opts.suppressStdout {
163
logger = log.NewNopLogger()
0 commit comments