From 32276e8b01a16840df38aa4b703ab9b2be5b8c74 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Fri, 15 May 2015 18:49:31 +0200 Subject: Update StateTests and nil create return on failed code deposit --- core/state_transition.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/state_transition.go') 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) } } -- cgit