increase loginterval of txpool and p2p logs (#8291)

This commit is contained in:
Alex Sharov 2023-09-26 13:29:19 +07:00 committed by GitHub
parent f794438335
commit b3f4520449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -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"
@ -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.
@ -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
}

View File

@ -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{}

View File

@ -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