mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-29 07:07:16 +00:00
This reverts commit 1331bb661a
.
This commit is contained in:
parent
596d10ea2e
commit
ecbc039b69
@ -636,20 +636,6 @@ func (p *TxPool) Best(n uint16, txs *types.TxsRlp, tx kv.Tx) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReportBadTransaction - reports a bad tx in the txpool due for removal.
|
|
||||||
func (p *TxPool) ReportBadTransaction(txHash [32]byte) {
|
|
||||||
p.lock.RLock()
|
|
||||||
defer p.lock.RUnlock()
|
|
||||||
|
|
||||||
best := p.pending.best
|
|
||||||
for i := 0; i < len(best.ms); i++ {
|
|
||||||
if bytes.Equal(best.ms[i].Tx.IDHash[:], txHash[:]) {
|
|
||||||
p.pending.Remove(best.ms[i])
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *TxPool) CountContent() (int, int, int) {
|
func (p *TxPool) CountContent() (int, int, int) {
|
||||||
p.lock.RLock()
|
p.lock.RLock()
|
||||||
defer p.lock.RUnlock()
|
defer p.lock.RUnlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user