aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/transaction_pool.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/transaction_pool.go b/core/transaction_pool.go
index c59eaa061..a0f3c326a 100644
--- a/core/transaction_pool.go
+++ b/core/transaction_pool.go
@@ -69,7 +69,9 @@ func (pool *TxPool) Start() {
for _, tx := range pool.pending {
if addr, err := tx.From(); err == nil {
- pool.state.SetNonce(addr, tx.Nonce())
+ if pool.state.GetNonce(addr) < tx.Nonce() {
+ pool.state.SetNonce(addr, tx.Nonce())
+ }
}
}