mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
more fixes
This commit is contained in:
parent
db8cbe6244
commit
030b518ceb
@ -673,7 +673,6 @@ func (p *SubPool) UnsafeRemove(i *MetaTx) {
|
|||||||
p.worst.Pop()
|
p.worst.Pop()
|
||||||
p.best.Swap(i.bestIndex, p.best.Len()-1)
|
p.best.Swap(i.bestIndex, p.best.Len()-1)
|
||||||
p.best.Pop()
|
p.best.Pop()
|
||||||
return
|
|
||||||
}
|
}
|
||||||
func (p *SubPool) UnsafeAdd(i *MetaTx, subPoolType SubPoolType) {
|
func (p *SubPool) UnsafeAdd(i *MetaTx, subPoolType SubPoolType) {
|
||||||
i.currentSubPool = subPoolType
|
i.currentSubPool = subPoolType
|
||||||
|
@ -264,7 +264,7 @@ func FuzzOnNewBlocks10(f *testing.F) {
|
|||||||
pool.senderIDs = senderIDs
|
pool.senderIDs = senderIDs
|
||||||
check := func(unwindTxs, minedTxs TxSlots, msg string) {
|
check := func(unwindTxs, minedTxs TxSlots, msg string) {
|
||||||
pending, baseFee, queued := pool.pending, pool.baseFee, pool.queued
|
pending, baseFee, queued := pool.pending, pool.baseFee, pool.queued
|
||||||
//if pending.Len() > 0 || baseFee.Len() > 0 || queued.Len() > 0 {
|
//if pending.Len() > 10 && baseFee.Len() > 10 && queued.Len() > 10 {
|
||||||
// fmt.Printf("len: %d,%d,%d\n", pending.Len(), baseFee.Len(), queued.Len())
|
// fmt.Printf("len: %d,%d,%d\n", pending.Len(), baseFee.Len(), queued.Len())
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user