Skip to content

core/vm/eips.go

Type MOD
Upstream Lines 592
Changed +7 -0

Add ETC-specific EIP activation hooks

diff --git a/core/vm/eips.go b/core/vm/eips.go
index 33af8fd4f..5049e916f 100644
--- a/core/vm/eips.go
+++ b/core/vm/eips.go
@@ -27,6 +27,7 @@ import (
 )

 var activators = map[int]func(*JumpTable){
+   160:  enable160,
    5656: enable5656,
    6780: enable6780,
    3855: enable3855,
@@ -166,6 +167,12 @@ func enable3529(jt *JumpTable) {
    jt[SELFDESTRUCT].dynamicGas = gasSelfdestructEIP3529
 }

+// enable160 applies EIP-160 (EXP gas cost increase from 10 to 50 per byte).
+// https://eips.ethereum.org/EIPS/eip-160
+func enable160(jt *JumpTable) {
+   jt[EXP].dynamicGas = gasExpEIP158
+}
+
 // enable3198 applies EIP-3198 (BASEFEE Opcode)
 // - Adds an opcode that returns the current block's base fee.
 func enable3198(jt *JumpTable) {

← Back to Core & EVM