diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-16 00:49:31 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-16 00:49:31 +0800 |
commit | 32276e8b01a16840df38aa4b703ab9b2be5b8c74 (patch) | |
tree | 48b080589ef8ff0e9ad172ed79ceb5b3ed04b32b /core | |
parent | 830bdb1cfd781192f2ffd42e94650a7717ac748a (diff) | |
download | go-tangerine-32276e8b01a16840df38aa4b703ab9b2be5b8c74.tar.gz go-tangerine-32276e8b01a16840df38aa4b703ab9b2be5b8c74.tar.zst go-tangerine-32276e8b01a16840df38aa4b703ab9b2be5b8c74.zip |
Update StateTests and nil create return on failed code deposit
Diffstat (limited to 'core')
-rw-r--r-- | core/state_transition.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/state_transition.go b/core/state_transition.go index d95cbd35a..3d11a0464 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -205,6 +205,7 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er if err := self.UseGas(dataGas); err == nil { ref.SetCode(ret) } else { + ret = nil // does not affect consensus but useful for StateTests validations glog.V(logger.Core).Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas) } } |