Skip to content

Commit

Permalink
core/vm: enabled eip 3198 opcodes for base fee
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Aug 11, 2023
1 parent c58d02a commit 4effac3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/vm/jump_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package vm
import (
"fmt"

metaminer "github.com/ethereum/go-ethereum/metadium/miner"
"github.com/ethereum/go-ethereum/params"
)

Expand Down Expand Up @@ -95,10 +94,7 @@ func newMergeInstructionSet() JumpTable {
func newLondonInstructionSet() JumpTable {
instructionSet := newBerlinInstructionSet()
enable3529(&instructionSet) // EIP-3529: Reduction in refunds https://eips.ethereum.org/EIPS/eip-3529
// Metadium: eip-3198 is inactive
if metaminer.IsPoW() {
enable3198(&instructionSet) // Base fee opcode https://eips.ethereum.org/EIPS/eip-3198
}
enable3198(&instructionSet) // Base fee opcode https://eips.ethereum.org/EIPS/eip-3198
return validate(instructionSet)
}

Expand Down

0 comments on commit 4effac3

Please sign in to comment.