forked from cerc-io/plugeth
Removed extra invalid nonce return
This commit is contained in:
parent
d5efeab8f9
commit
3274e0a249
@ -109,12 +109,8 @@ func (pool *TxPool) ProcessTransaction(tx *Transaction, block *Block) (err error
|
|||||||
}
|
}
|
||||||
|
|
||||||
if sender.Nonce != tx.Nonce {
|
if sender.Nonce != tx.Nonce {
|
||||||
if ethutil.Config.Debug {
|
|
||||||
return fmt.Errorf("Invalid nonce %d(%d) continueing anyway", tx.Nonce, sender.Nonce)
|
|
||||||
} else {
|
|
||||||
return fmt.Errorf("Invalid nonce %d(%d)", tx.Nonce, sender.Nonce)
|
return fmt.Errorf("Invalid nonce %d(%d)", tx.Nonce, sender.Nonce)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Get the receiver
|
// Get the receiver
|
||||||
receiver := block.state.GetAccount(tx.Recipient)
|
receiver := block.state.GetAccount(tx.Recipient)
|
||||||
|
Loading…
Reference in New Issue
Block a user