Merge pull request #97 from openrelayxyz/feature/etc-plugin-160

Feature/etc plugin 160
This commit is contained in:
Philip Morlier 2023-10-24 09:19:40 -07:00 committed by GitHub
commit 7dd3c9d233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,9 @@ func NewEVMInterpreter(evm *EVM) *EVMInterpreter {
table = &constantinopleInstructionSet table = &constantinopleInstructionSet
case evm.chainRules.IsByzantium: case evm.chainRules.IsByzantium:
table = &byzantiumInstructionSet table = &byzantiumInstructionSet
case evm.chainRules.IsEIP158: // begin PluGeth injection
case evm.chainRules.IsEIP160:
// end PluGeth injection
table = &spuriousDragonInstructionSet table = &spuriousDragonInstructionSet
case evm.chainRules.IsEIP150: case evm.chainRules.IsEIP150:
table = &tangerineWhistleInstructionSet table = &tangerineWhistleInstructionSet

View File

@ -49,7 +49,6 @@ func LookupInstructionSet(rules params.Rules) (JumpTable, error) {
// Begin plugeth injection // Begin plugeth injection
case rules.IsEIP160: case rules.IsEIP160:
// End plugeth injection // End plugeth injection
case rules.IsEIP158:
return newSpuriousDragonInstructionSet(), nil return newSpuriousDragonInstructionSet(), nil
case rules.IsEIP150: case rules.IsEIP150:
return newTangerineWhistleInstructionSet(), nil return newTangerineWhistleInstructionSet(), nil