Commit cf5ad266 authored by obscuren's avatar obscuren

core: only change the nonce if the account nonce is lower

parent 2bb0e48a
......@@ -69,9 +69,11 @@ func (pool *TxPool) Start() {
for _, tx := range pool.pending {
if addr, err := tx.From(); err == nil {
if pool.state.GetNonce(addr) < tx.Nonce() {
pool.state.SetNonce(addr, tx.Nonce())
}
}
}
pool.checkQueue()
pool.mu.Unlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment