mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
save
This commit is contained in:
parent
cf351f8e64
commit
bc1c7bd91c
@ -502,7 +502,11 @@ func onNewTxs(senders *SendersCache, newTxs TxSlots, protocolBaseFee, pendingBas
|
||||
}
|
||||
}
|
||||
|
||||
changedSenders := map[uint64]*senderInfo{}
|
||||
|
||||
unsafeAddToPool(senders, newTxs, pending, PendingSubPool, func(i *metaTx, sender *senderInfo) {
|
||||
changedSenders[i.Tx.senderID] = sender
|
||||
|
||||
if _, ok := localsHistory.Get(i.Tx.idHash); ok {
|
||||
//TODO: also check if sender is in list of local-senders
|
||||
i.subPool |= IsLocal
|
||||
@ -525,10 +529,9 @@ func onNewTxs(senders *SendersCache, newTxs TxSlots, protocolBaseFee, pendingBas
|
||||
}
|
||||
})
|
||||
|
||||
senders.forEach(func(sender *senderInfo) {
|
||||
// TODO: aggregate changed senders before call this func
|
||||
for _, sender := range changedSenders {
|
||||
onSenderChange(sender, protocolBaseFee, pendingBaseFee)
|
||||
})
|
||||
}
|
||||
|
||||
pending.EnforceInvariants()
|
||||
baseFee.EnforceInvariants()
|
||||
|
Loading…
Reference in New Issue
Block a user