From 601e5fa4438e2faf05d0866065d0db1a8066d71f Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Tue, 17 Aug 2021 10:32:18 +0700 Subject: [PATCH] add txpool tables --- txpool/fetch.go | 2 +- txpool/pool.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/txpool/fetch.go b/txpool/fetch.go index 24c0d9535..35a710e3b 100644 --- a/txpool/fetch.go +++ b/txpool/fetch.go @@ -55,7 +55,7 @@ type Timings struct { var DefaultTimings = Timings{ syncToNewPeersEvery: 2 * time.Minute, - logEvery: 30 * time.Second, + logEvery: 10 * time.Second, } // NewFetch creates a new fetch object that will work with given sentry clients. Since the diff --git a/txpool/pool.go b/txpool/pool.go index 0240685d0..a007a4667 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -331,6 +331,7 @@ func (p *TxPool) setBaseFee(protocolBaseFee, pendingBaseFee uint64) (uint64, uin if hasNewVal { p.protocolBaseFee.Store(pendingBaseFee) } + log.Debug("set base fee", "protocol", protocolBaseFee, "pending", pendingBaseFee) return protocolBaseFee, p.pendingBaseFee.Load() }