Moved handling of nonces to the managed state

This commit is contained in:
obscuren
2015-04-08 23:30:07 +02:00
parent 6e2f78ebdd
commit 204ac81188
3 changed files with 9 additions and 6 deletions

View File

@ -449,7 +449,7 @@ func (self *Ethereum) syncAccounts(tx *types.Transaction) {
if self.accountManager.HasAccount(from.Bytes()) {
if self.chainManager.TxState().GetNonce(from) < tx.Nonce() {
self.chainManager.TxState().SetNonce(from, tx.Nonce()+1)
self.chainManager.TxState().SetNonce(from, tx.Nonce())
}
}
}