diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-04-01 19:42:19 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-04-01 19:42:19 +0800 |
commit | c58079461bafe508bea9233e2b81852df5188f57 (patch) | |
tree | 33d4c6a96eed3bf1ce9f69bbef3cbc1561f2b114 /core/vm/instructions.go | |
parent | 10d3466c934bd425a8c941270749a652a588527d (diff) | |
parent | 1f3596c25af077a3303c554ee6b49404b20f7117 (diff) | |
download | go-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.go | 2 |
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)) |