aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-08 17:09:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-05-08 17:09:35 +0800
commit60293820b7577a83c77a55038f14b555c3d9a3ff (patch)
tree6aa4d430c7d00a56e96939910b22980b55eff9ec /core/state_transition.go
parentdd483d7d0dc7bace4c38963f69ee9afa10c4183a (diff)
downloadgo-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar.gz
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar.bz2
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar.lz
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar.xz
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.tar.zst
go-tangerine-60293820b7577a83c77a55038f14b555c3d9a3ff.zip
core: fix processing regression during receipt import
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 9e11144c6..ea773b801 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -78,10 +78,6 @@ type Message interface {
Data() []byte
}
-func MessageCreatesContract(msg Message) bool {
- return msg.To() == nil
-}
-
// IntrinsicGas computes the 'intrinsic gas' for a message
// with the given data.
//
@@ -220,7 +216,7 @@ func (self *StateTransition) TransitionDb() (ret []byte, requiredGas, usedGas *b
sender := self.from() // err checked in preCheck
homestead := self.evm.ChainConfig().IsHomestead(self.evm.BlockNumber)
- contractCreation := MessageCreatesContract(msg)
+ contractCreation := msg.To() == nil
// Pay intrinsic gas
// TODO convert to uint64
intrinsicGas := IntrinsicGas(self.data, contractCreation, homestead)