From 490c366671d38dbe5691e612ae1e7e3b1aa3b74b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 26 Aug 2021 17:04:30 +0700 Subject: [PATCH] don't load everything on start --- txpool/pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index 440a2d036..fb21f8e38 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -823,7 +823,7 @@ func onNewTxs(tx kv.Tx, senders *SendersCache, newTxs TxSlots, protocolBaseFee, changedSenders := unsafeAddToPendingPool(byNonce, newTxs, pending, baseFee, queued, byHash, discard) for id := range changedSenders { - sender, err := senders.info(id, tx) + sender, err := senders.Info(id, tx) if err != nil { return err } @@ -1098,7 +1098,7 @@ func onNewBlock(tx kv.Tx, senders *SendersCache, unwindTxs TxSlots, minedTxs []* // time (up to some "immutability threshold"). changedSenders := unsafeAddToPendingPool(byNonce, unwindTxs, pending, baseFee, queued, byHash, discard) for id := range changedSenders { - sender, err := senders.info(id, tx) + sender, err := senders.Info(id, tx) if err != nil { return err }