Skip to content

Commit

Permalink
fix node crash issue when solidity block.difficulity or block.prevran…
Browse files Browse the repository at this point in the history
…dao called
  • Loading branch information
tak1827 committed Nov 6, 2024
1 parent 6cb8ad4 commit 7406938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/vm/jump_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,14 @@ func newCancunInstructionSet() JumpTable {
}

func newShanghaiInstructionSet() JumpTable {
instructionSet := newMergeInstructionSet()
instructionSet := newLondonInstructionSet()
enable3855(&instructionSet) // PUSH0 instruction
enable3860(&instructionSet) // Limit and meter initcode

return validate(instructionSet)
}

// Skip the Merge instruction set, as Oasys does not support RANDAO
func newMergeInstructionSet() JumpTable {
instructionSet := newLondonInstructionSet()
instructionSet[PREVRANDAO] = &operation{
Expand Down

0 comments on commit 7406938

Please sign in to comment.