diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-01 22:03:02 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-01 22:03:02 +0800 |
commit | 89630d2826300d119f2cdc9f8af6c94926f478a2 (patch) | |
tree | aa2addd061e2d2a8f3cdc0821260409f31ac3b09 /ethpub | |
parent | 12972b4b65a303dc3f9e135b0e2d97f8b7a661e2 (diff) | |
parent | 550407b0ec78b7026737d1abe28127da8c0c9063 (diff) | |
download | dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.gz dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.bz2 dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.lz dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.xz dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.tar.zst dexon-89630d2826300d119f2cdc9f8af6c94926f478a2.zip |
merge upstream
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 cd30d0260..ee4140899 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -212,7 +212,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc tx = ethchain.NewTransactionMessage(hash, value, gas, gasPrice, data) } - acc := lib.stateManager.TransState().GetStateObject(keyPair.Address()) + acc := lib.stateManager.TransState().GetOrNewStateObject(keyPair.Address()) tx.Nonce = acc.Nonce acc.Nonce += 1 lib.stateManager.TransState().UpdateStateObject(acc) |