mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
increase loginterval of txpool and p2p logs (#8291)
This commit is contained in:
parent
f794438335
commit
b3f4520449
@ -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
|
||||
}
|
||||
|
@ -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{}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user