mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-09 12:11:20 +00:00
core: fix txpool off-by-one error (#21683)
This commit is contained in:
parent
0a64615f1e
commit
ad3ff6452d
@ -814,6 +814,7 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
|
|||||||
nilSlot++
|
nilSlot++
|
||||||
}
|
}
|
||||||
errs[nilSlot] = err
|
errs[nilSlot] = err
|
||||||
|
nilSlot++
|
||||||
}
|
}
|
||||||
// Reorg the pool internals if needed and return
|
// Reorg the pool internals if needed and return
|
||||||
done := pool.requestPromoteExecutables(dirtyAddrs)
|
done := pool.requestPromoteExecutables(dirtyAddrs)
|
||||||
|
Loading…
Reference in New Issue
Block a user