diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 07:12:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 07:12:28 +0800 |
commit | 3c35ba7c31423da644c5fb73030af4673cff90ec (patch) | |
tree | c8e19b5a16b70780d6d837c3a60a260b13c6fd62 /ethpub | |
parent | 6ef2832083ad9d1e3cb1895f1aa836517dbf042d (diff) | |
download | go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar.gz go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar.bz2 go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar.lz go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar.xz go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.tar.zst go-tangerine-3c35ba7c31423da644c5fb73030af4673cff90ec.zip |
Fixed state overwriting issue
Diffstat (limited to 'ethpub')
-rw-r--r-- | ethpub/pub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go index fb1018d47..ec187e276 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -162,7 +162,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, in acc := lib.stateManager.TransState().GetStateObject(keyPair.Address()) tx.Nonce = acc.Nonce acc.Nonce += 1 - lib.stateManager.TransState().SetStateObject(acc) + lib.stateManager.TransState().UpdateStateObject(acc) tx.Sign(keyPair.PrivateKey) lib.txPool.QueueTransaction(tx) |