mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
don't load everything on start
This commit is contained in:
parent
f20c95e799
commit
490c366671
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user