diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-03 05:18:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-03 05:18:23 +0800 |
commit | 5c82fdc2434c302a2b65a4c7f25fe91b22cd43df (patch) | |
tree | 87f44045a531c4bf2223b839e33057d6c445a21e /xeth | |
parent | 55e55826ee3b763be8805dcdef0468a179619ba1 (diff) | |
download | dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar.gz dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar.bz2 dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar.lz dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar.xz dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.tar.zst dexon-5c82fdc2434c302a2b65a4c7f25fe91b22cd43df.zip |
Make sure that the object exists
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/pipe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/pipe.go b/xeth/pipe.go index 775d5cfc5..cae6ee1de 100644 --- a/xeth/pipe.go +++ b/xeth/pipe.go @@ -139,7 +139,7 @@ func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *et // Do some pre processing for our "pre" events and hooks block := self.chainManager.NewBlock(key.Address()) - coinbase := state.GetStateObject(key.Address()) + coinbase := state.GetOrNewStateObject(key.Address()) coinbase.SetGasPool(block.GasLimit()) self.blockManager.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true) |