mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-23 16:29:26 +00:00
core: should enqueue the invalids tx anyway
even the pending is empty we shoud enqueue the invalid txs
This commit is contained in:
parent
f1d440a437
commit
f8601430fd
1 changed files with 6 additions and 5 deletions
|
|
@ -881,12 +881,13 @@ func (pool *TxPool) removeTx(hash common.Hash) {
|
||||||
if pending.Empty() {
|
if pending.Empty() {
|
||||||
delete(pool.pending, addr)
|
delete(pool.pending, addr)
|
||||||
delete(pool.beats, addr)
|
delete(pool.beats, addr)
|
||||||
} else {
|
|
||||||
// Otherwise postpone any invalidated transactions
|
|
||||||
for _, tx := range invalids {
|
|
||||||
pool.enqueueTx(tx.Hash(), tx)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Otherwise postpone any invalidated transactions
|
||||||
|
for _, tx := range invalids {
|
||||||
|
pool.enqueueTx(tx.Hash(), tx)
|
||||||
|
}
|
||||||
|
|
||||||
// Update the account nonce if needed
|
// Update the account nonce if needed
|
||||||
if nonce := tx.Nonce(); pool.pendingState.GetNonce(addr) > nonce {
|
if nonce := tx.Nonce(); pool.pendingState.GetNonce(addr) > nonce {
|
||||||
pool.pendingState.SetNonce(addr, nonce)
|
pool.pendingState.SetNonce(addr, nonce)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue