Skip to content

Commit

Permalink
Merge pull request #101 from oasysgames/fix/block-difficulty-crash
Browse files Browse the repository at this point in the history
[testnet] fix node crash issue when solidity block.difficulity or block.prevrandao called
  • Loading branch information
ironbeer authored Nov 12, 2024
2 parents 6757838 + 7406938 commit 149c4c7
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 149c4c7

Please sign in to comment.