aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/instructions.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-04-01 19:42:19 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-04-01 19:42:19 +0800
commitc58079461bafe508bea9233e2b81852df5188f57 (patch)
tree33d4c6a96eed3bf1ce9f69bbef3cbc1561f2b114 /core/vm/instructions.go
parent10d3466c934bd425a8c941270749a652a588527d (diff)
parent1f3596c25af077a3303c554ee6b49404b20f7117 (diff)
downloadgo-tangerine-c58079461bafe508bea9233e2b81852df5188f57.tar.gz
go-tangerine-c58079461bafe508bea9233e2b81852df5188f57.tar.zst
go-tangerine-c58079461bafe508bea9233e2b81852df5188f57.zip
Merge pull request #2281 from obscuren/configurable-genesis
core: homestead chain configuration & artificial gas floor target mining flag
Diffstat (limited to 'core/vm/instructions.go')
-rw-r--r--core/vm/instructions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index c4b4339a2..942fafde7 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -520,7 +520,7 @@ func opCreate(instr instruction, pc *uint64, env Environment, contract *Contract
// homestead we must check for CodeStoreOutOfGasError (homestead only
// rule) and treat as an error, if the ruleset is frontier we must
// ignore this error and pretend the operation was successful.
- if params.IsHomestead(env.BlockNumber()) && suberr == CodeStoreOutOfGasError {
+ if env.RuleSet().IsHomestead(env.BlockNumber()) && suberr == CodeStoreOutOfGasError {
stack.push(new(big.Int))
} else if suberr != nil && suberr != CodeStoreOutOfGasError {
stack.push(new(big.Int))