aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/jump_table.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-05-13 03:35:45 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-05-18 15:05:58 +0800
commita5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5 (patch)
tree251d24c632d746ad32af6874fe115b1e86ae9b03 /core/vm/jump_table.go
parente6aff513dbe04b105db1ae44501c1732a7ab7af3 (diff)
downloadgo-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.gz
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.zst
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.zip
consensus, core, core/vm, parems: review fixes
Diffstat (limited to 'core/vm/jump_table.go')
-rw-r--r--core/vm/jump_table.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go
index c4a1430b2..a6d49166e 100644
--- a/core/vm/jump_table.go
+++ b/core/vm/jump_table.go
@@ -56,12 +56,14 @@ type operation struct {
}
var (
- baseInstructionSet = NewBaseInstructionSet()
+ frontierInstructionSet = NewFrontierInstructionSet()
homesteadInstructionSet = NewHomesteadInstructionSet()
)
+// NewHomesteadInstructionSet returns the frontier and homestead
+// instructions that can be executed during the homestead phase.
func NewHomesteadInstructionSet() [256]operation {
- instructionSet := NewBaseInstructionSet()
+ instructionSet := NewFrontierInstructionSet()
instructionSet[DELEGATECALL] = operation{
execute: opDelegateCall,
gasCost: gasDelegateCall,
@@ -72,7 +74,9 @@ func NewHomesteadInstructionSet() [256]operation {
return instructionSet
}
-func NewBaseInstructionSet() [256]operation {
+// NewFrontierInstructionSet returns the frontier instructions
+// that can be executed during the frontier phase.
+func NewFrontierInstructionSet() [256]operation {
return [256]operation{
STOP: {
execute: opStop,