Ver Fonte

core: removal of dead-code

Removal of dead code that appeard as if we had a consensus issue. This
however is not the case as the proper error catching happens in the vm
package instead.
Jeffrey Wilcke há 8 anos atrás
pai
commit
508fdc3496
1 ficheiros alterados com 0 adições e 3 exclusões
  1. 0 3
      core/state_transition.go

+ 0 - 3
core/state_transition.go

@@ -233,9 +233,6 @@ func (self *StateTransition) TransitionDb() (ret []byte, requiredGas, usedGas *b
 	)
 	if contractCreation {
 		ret, _, vmerr = vmenv.Create(sender, self.data, self.gas, self.value)
-		if homestead && err == vm.ErrCodeStoreOutOfGas {
-			self.gas = Big0
-		}
 	} else {
 		// Increment the nonce for the next transaction
 		self.state.SetNonce(sender.Address(), self.state.GetNonce(sender.Address())+1)