From 2433349c808fad601419d1f06275bec5b6a93ec8 Mon Sep 17 00:00:00 2001 From: gary rong Date: Tue, 24 Jul 2018 23:06:40 +0800 Subject: core/vm, params: implement EXTCODEHASH opcode (#17202) * core/vm, params: implement EXTCODEHASH opcode * core, params: tiny fixes and polish * core: add function description --- core/vm/jump_table.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/vm/jump_table.go') diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index 014496567..f387e6133 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -80,6 +80,12 @@ func newConstantinopleInstructionSet() [256]operation { validateStack: makeStackFunc(2, 1), valid: true, } + instructionSet[EXTCODEHASH] = operation{ + execute: opExtCodeHash, + gasCost: gasExtCodeHash, + validateStack: makeStackFunc(1, 1), + valid: true, + } instructionSet[CREATE2] = operation{ execute: opCreate2, gasCost: gasCreate2, -- cgit