|
|
@ -22,7 +22,7 @@ import ( |
|
|
|
"github.com/ethereum/go-ethereum/params" |
|
|
|
"github.com/ethereum/go-ethereum/params" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// LookupInstructionSet returns the instructionset for the fork configured by
|
|
|
|
// LookupInstructionSet returns the instruction set for the fork configured by
|
|
|
|
// the rules.
|
|
|
|
// the rules.
|
|
|
|
func LookupInstructionSet(rules params.Rules) (JumpTable, error) { |
|
|
|
func LookupInstructionSet(rules params.Rules) (JumpTable, error) { |
|
|
|
switch { |
|
|
|
switch { |
|
|
@ -56,7 +56,7 @@ func LookupInstructionSet(rules params.Rules) (JumpTable, error) { |
|
|
|
return newFrontierInstructionSet(), nil |
|
|
|
return newFrontierInstructionSet(), nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Stack returns the mininum and maximum stack requirements.
|
|
|
|
// Stack returns the minimum and maximum stack requirements.
|
|
|
|
func (op *operation) Stack() (int, int) { |
|
|
|
func (op *operation) Stack() (int, int) { |
|
|
|
return op.minStack, op.maxStack |
|
|
|
return op.minStack, op.maxStack |
|
|
|
} |
|
|
|
} |
|
|
|