提交 cf5ad266 编写于 作者: O obscuren

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

上级 2bb0e48a
......@@ -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())
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册