aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 07:12:28 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 07:12:28 +0800
commit3c35ba7c31423da644c5fb73030af4673cff90ec (patch)
treec8e19b5a16b70780d6d837c3a60a260b13c6fd62 /ethpub
parent6ef2832083ad9d1e3cb1895f1aa836517dbf042d (diff)
downloadgo-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.go2
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)