From f10618eac8ac773e1935e9d837776d83b8d82a74 Mon Sep 17 00:00:00 2001 From: Chris Ziogas Date: Thu, 1 Jun 2023 12:18:55 +0300 Subject: [PATCH] core/vm: Rename RANDOM to PREVRANDAO for enablement in instruction set During the merge from go-ethereum we wrongly handled the instruction to be activated for RANDOM which has been renamed to PREVRANDAO. This can be found at https://github.com/ethereum/go-ethereum/commit/d30e39b2f833fb75f1e529cd405061fb6b548b8d#diff-3722385a96482d2250e1b71e50749b4a104968ca098dbb91331db536a37b3867L83 --- core/vm/jump_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index 75c70526d1..31f203636b 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -194,7 +194,7 @@ func instructionSetForConfig(config ctypes.ChainConfigurator, isPostMerge bool, enable3198(instructionSet) // BASEFEE opcode https://eips.ethereum.org/EIPS/eip-3198 } if isPostMerge { - instructionSet[RANDOM] = &operation{ + instructionSet[PREVRANDAO] = &operation{ execute: opRandom, constantGas: GasQuickStep, minStack: minStack(0, 1),