diff --git a/core/vm/jump_table_export.go b/core/vm/jump_table_export.go index b74109da0a..5364bb637d 100644 --- a/core/vm/jump_table_export.go +++ b/core/vm/jump_table_export.go @@ -16,46 +16,6 @@ package vm -import ( - "errors" - - "github.com/ethereum/go-ethereum/params" -) - -// LookupInstructionSet returns the instruction set for the fork configured by -// the rules. -func LookupInstructionSet(rules params.Rules) (JumpTable, error) { - switch { - case rules.IsVerkle: - return newCancunInstructionSet(), errors.New("verkle-fork not defined yet") - case rules.IsPrague: - return newCancunInstructionSet(), errors.New("prague-fork not defined yet") - case rules.IsCancun: - return newCancunInstructionSet(), nil - case rules.IsShanghai: - return newShanghaiInstructionSet(), nil - case rules.IsMerge: - return newMergeInstructionSet(), nil - case rules.IsLondon: - return newLondonInstructionSet(), nil - case rules.IsBerlin: - return newBerlinInstructionSet(), nil - case rules.IsIstanbul: - return newIstanbulInstructionSet(), nil - case rules.IsConstantinople: - return newConstantinopleInstructionSet(), nil - case rules.IsByzantium: - return newByzantiumInstructionSet(), nil - case rules.IsEIP158: - return newSpuriousDragonInstructionSet(), nil - case rules.IsEIP150: - return newTangerineWhistleInstructionSet(), nil - case rules.IsHomestead: - return newHomesteadInstructionSet(), nil - } - return newFrontierInstructionSet(), nil -} - // Stack returns the minimum and maximum stack requirements. func (op *operation) Stack() (int, int) { return op.minStack, op.maxStack