From bb2749670b2e21cb5592bf59c5152133cb037b84 Mon Sep 17 00:00:00 2001 From: "cuiweixie@cmcm.com" Date: Sat, 3 Mar 2018 19:12:41 +0800 Subject: [PATCH] core: bugfix:should enqueue the invalids tx anyway --- core/tx_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 3c32cceb3f..7d7ed334ac 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -882,12 +882,12 @@ func (pool *TxPool) removeTx(hash common.Hash) { delete(pool.pending, addr) delete(pool.beats, addr) } - + // 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)