Skip to content

Commit

Permalink
increase loginterval of txpool and p2p logs (#8291)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Sep 26, 2023
1 parent f794438 commit b3f4520
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions cmd/silkworm_api/snapshot_idx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ package main

import (
"fmt"
"os"
"path/filepath"
"time"

"github.com/ledgerwatch/erigon-lib/common/background"
"github.com/ledgerwatch/erigon-lib/common/datadir"
"github.com/ledgerwatch/erigon-lib/downloader/snaptype"
Expand All @@ -12,9 +16,6 @@ import (
"github.com/ledgerwatch/log/v3"
"github.com/urfave/cli/v2"
"golang.org/x/sync/errgroup"
"os"
"path/filepath"
"time"
)

// Build snapshot indexes for given snapshot files.
Expand Down Expand Up @@ -55,7 +56,7 @@ func FindIf(segments []snaptype.FileInfo, predicate func(snaptype.FileInfo) bool
}

func buildIndex(cliCtx *cli.Context, dataDir string, snapshotPaths []string) error {
logger, err := debug.Setup(cliCtx, true /* rootLogger */)
logger, _, err := debug.Setup(cliCtx, true /* rootLogger */)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func New(stack *node.Node, config *ethconfig.Config, logger log.Logger) (*Ethere
}

go func() {
logEvery := time.NewTicker(120 * time.Second)
logEvery := time.NewTicker(180 * time.Second)
defer logEvery.Stop()

var logItems []interface{}
Expand Down
2 changes: 1 addition & 1 deletion eth/ethconfig/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var DefaultTxPool2Config = func(fullCfg *Config) txpoolcfg.Config {
cfg.MinFeeCap = pool1Cfg.PriceLimit
cfg.AccountSlots = pool1Cfg.AccountSlots
cfg.BlobSlots = fullCfg.TxPool.BlobSlots
cfg.LogEvery = 1 * time.Minute
cfg.LogEvery = 3 * time.Minute
cfg.CommitEvery = 5 * time.Minute
cfg.TracedSenders = pool1Cfg.TracedSenders
cfg.CommitEvery = pool1Cfg.CommitEvery
Expand Down

0 comments on commit b3f4520

Please sign in to comment.