未验证 提交 f8601430 编写于 作者: C cui 提交者: Péter Szilágyi

core: should enqueue the invalids tx anyway

even the pending is empty we shoud enqueue the invalid txs
上级 f1d440a4
......@@ -881,12 +881,13 @@ func (pool *TxPool) removeTx(hash common.Hash) {
if pending.Empty() {
delete(pool.pending, 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
if nonce := tx.Nonce(); pool.pendingState.GetNonce(addr) > nonce {
pool.pendingState.SetNonce(addr, nonce)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册