mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
evic
This commit is contained in:
parent
d491e4c093
commit
d9dae8199b
@ -337,22 +337,20 @@ func (p *TxPool) OnNewBlock(tx kv.Tx, stateChanges map[string]senderInfo, unwind
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// evict sendersInfo without txs
|
||||||
// evict sendersInfo without txs
|
if len(p.senderIDs) > MaxSendersInfoCache {
|
||||||
if len(p.senderIDs) > MaxSendersInfoCache {
|
for i := range p.senderInfo {
|
||||||
for i := range p.senderInfo {
|
if p.senderInfo[i].txNonce2Tx.Len() > 0 {
|
||||||
if p.senderInfo[i].txNonce2Tx.Len() > 0 {
|
continue
|
||||||
continue
|
|
||||||
}
|
|
||||||
for addr, id := range p.senderIDs {
|
|
||||||
if id == i {
|
|
||||||
delete(p.senderIDs, addr)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
delete(p.senderInfo, i)
|
|
||||||
}
|
}
|
||||||
|
for addr, id := range p.senderIDs {
|
||||||
|
if id == i {
|
||||||
|
delete(p.senderIDs, addr)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delete(p.senderInfo, i)
|
||||||
}
|
}
|
||||||
*/
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user