diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 21:37:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 21:37:54 +0800 |
commit | cda88ce31a45af001443c71fb16bdb2bbe1efbc7 (patch) | |
tree | 251b3340f4666e153bd347aab0c20e526c359bff /xeth | |
parent | aa9f981d5f9e45d4f92ad3ccd98454aaa59e87c9 (diff) | |
download | go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar.gz go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar.bz2 go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar.lz go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar.xz go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.tar.zst go-tangerine-cda88ce31a45af001443c71fb16bdb2bbe1efbc7.zip |
Implemented a manage state for keeping track of nonces
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 4c28caf86..4ce1ee6a5 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -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) |