Skip to content

Commit

Permalink
set sane defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed May 16, 2022
1 parent 9554c65 commit 95b533f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import (
)

var (
exitWhenSynced bool
metricsPort int
metricsPort int
)

// serveCmd represents the serve command
Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func DefaultConfig() *Config {
Enabled: true,
Name: "execution",
URL: "http://localhost:8545",
Modules: []string{"eth", "net", "web3"},
Modules: []string{"eth", "net", "admin", "txpool"},
},
Consensus: ConsensusNode{
Enabled: true,
Expand Down
4 changes: 3 additions & 1 deletion pkg/exporter/execution/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ func (e *node) Bootstrap(ctx context.Context) error {

func (e *node) StartMetrics(ctx context.Context) {
for !e.Bootstrapped() {
e.Bootstrap(ctx)
if err := e.Bootstrap(ctx); err != nil {
e.log.WithError(err).Error("Failed to bootstrap node")
}

time.Sleep(5 * time.Second)
}
Expand Down

0 comments on commit 95b533f

Please sign in to comment.