Commit cf5ad266 authored by obscuren's avatar obscuren

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

parent 2bb0e48a
...@@ -69,7 +69,9 @@ func (pool *TxPool) Start() { ...@@ -69,7 +69,9 @@ func (pool *TxPool) Start() {
for _, tx := range pool.pending { for _, tx := range pool.pending {
if addr, err := tx.From(); err == nil { 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())
}
} }
} }
......
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