From 6f686f510bb9094ef52bee33d47dfd126d5106de Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 16 Aug 2021 16:40:07 +0700 Subject: [PATCH] save --- txpool/pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/txpool/pool.go b/txpool/pool.go index 8bce454ff..0240685d0 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -165,7 +165,8 @@ func New(newTxs chan Hashes, db kv.RwDB) (*TxPool, error) { func (p *TxPool) logStats() { p.lock.RLock() defer p.lock.RUnlock() - log.Info(fmt.Sprintf("[txpool] queues size: pending=%d/%d, baseFee=%d/%d, queued=%d/%d", p.pending.Len(), PendingSubPoolLimit, p.baseFee.Len(), BaseFeeSubPoolLimit, p.pending.Len(), PendingSubPoolLimit)) + protocolBaseFee, pendingBaseFee := p.protocolBaseFee.Load(), p.pendingBaseFee.Load() + log.Info(fmt.Sprintf("[txpool] baseFee: protocol=%d,pending=%d; queues size: pending=%d/%d, baseFee=%d/%d, queued=%d/%d", protocolBaseFee, pendingBaseFee, p.pending.Len(), PendingSubPoolLimit, p.baseFee.Len(), BaseFeeSubPoolLimit, p.pending.Len(), PendingSubPoolLimit)) } func (p *TxPool) GetRlp(hash []byte) []byte { p.lock.RLock()