Implemented a manage state for keeping track of nonces

This commit is contained in:
obscuren
2015-03-13 14:37:54 +01:00
parent aa9f981d5f
commit cda88ce31a
3 changed files with 63 additions and 6 deletions

View File

@ -362,7 +362,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
if err := self.eth.TxPool().Add(tx); err != nil {
return "", err
}
state.SetNonce(from, nonce+1)
state.IncrementNonce(from)
if contractCreation {
addr := core.AddressFromMessage(tx)