mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
parent
20a7093f4c
commit
b3920abc9a
2 changed files with 14 additions and 13 deletions
|
|
@ -120,12 +120,12 @@ func newShanghaiInstructionSet() JumpTable {
|
||||||
|
|
||||||
func newMergeInstructionSet() JumpTable {
|
func newMergeInstructionSet() JumpTable {
|
||||||
instructionSet := newLondonInstructionSet()
|
instructionSet := newLondonInstructionSet()
|
||||||
instructionSet[PREVRANDAO] = &operation{
|
// instructionSet[PREVRANDAO] = &operation{
|
||||||
execute: opRandom,
|
// execute: opRandom,
|
||||||
constantGas: GasQuickStep,
|
// constantGas: GasQuickStep,
|
||||||
minStack: minStack(0, 1),
|
// minStack: minStack(0, 1),
|
||||||
maxStack: maxStack(0, 1),
|
// maxStack: maxStack(0, 1),
|
||||||
}
|
// }
|
||||||
return validate(instructionSet)
|
return validate(instructionSet)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,13 +89,14 @@ const (
|
||||||
|
|
||||||
// 0x40 range - block operations.
|
// 0x40 range - block operations.
|
||||||
const (
|
const (
|
||||||
BLOCKHASH OpCode = 0x40
|
BLOCKHASH OpCode = 0x40
|
||||||
COINBASE OpCode = 0x41
|
COINBASE OpCode = 0x41
|
||||||
TIMESTAMP OpCode = 0x42
|
TIMESTAMP OpCode = 0x42
|
||||||
NUMBER OpCode = 0x43
|
NUMBER OpCode = 0x43
|
||||||
DIFFICULTY OpCode = 0x44
|
DIFFICULTY OpCode = 0x44
|
||||||
RANDOM OpCode = 0x44 // Same as DIFFICULTY
|
// RANDOM & PREVRANDAO are not supported in scroll
|
||||||
PREVRANDAO OpCode = 0x44 // Same as DIFFICULTY
|
// RANDOM OpCode = 0x44 // Same as DIFFICULTY
|
||||||
|
// PREVRANDAO OpCode = 0x44 // Same as DIFFICULTY
|
||||||
GASLIMIT OpCode = 0x45
|
GASLIMIT OpCode = 0x45
|
||||||
CHAINID OpCode = 0x46
|
CHAINID OpCode = 0x46
|
||||||
SELFBALANCE OpCode = 0x47
|
SELFBALANCE OpCode = 0x47
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue