This commit is contained in:
Sina Mahmoodi 2024-05-29 15:09:27 +02:00
parent 7ab6a20938
commit a79c2187cc
3 changed files with 1 additions and 8 deletions

View file

@ -434,6 +434,7 @@ func opBlockhash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) (
num.Clear()
return nil, nil
}
var upper, lower uint64
upper = interpreter.evm.Context.BlockNumber.Uint64()
if upper < 257 {

View file

@ -87,11 +87,6 @@ func newVerkleInstructionSet() JumpTable {
return validate(instructionSet)
}
func newPraugeInstructionSet() JumpTable {
instructionSet := newCancunInstructionSet()
return validate(instructionSet)
}
func newCancunInstructionSet() JumpTable {
instructionSet := newShanghaiInstructionSet()
enable4844(&instructionSet) // EIP-4844 (BLOBHASH opcode)

View file

@ -195,7 +195,4 @@ var (
HistoryStorageAddress = common.HexToAddress("0x25a219378dad9b3503c8268c9ca836a52427a4fb")
// HistoryStorageCode is the code with getters for historical block hashes.
HistoryStorageCode = common.FromHex("60203611603157600143035f35116029575f356120000143116029576120005f3506545f5260205ff35b5f5f5260205ff35b5f5ffd00")
// Magic prefix for EIP-3074 AUTH messages.
AuthMagic = byte(0x04)
)