core/vm/eips.go — Version Comparison
|
v1.16.8 |
v1.17.3 |
| Branch |
etc/v1.16.8-full-node |
etc/v1.17.3-full-node |
| Delta |
+7 -0 |
+7 -0 |
ETC delta on v1.16.8 (+7 -0)
diff --git a/core/vm/eips.go b/core/vm/eips.go
index d7ed18648..c6827c5e5 100644
--- a/core/vm/eips.go
+++ b/core/vm/eips.go
@@ -28,6 +28,7 @@ import (
)
var activators = map[int]func(*JumpTable){
+ 160: enable160,
5656: enable5656,
6780: enable6780,
3855: enable3855,
@@ -167,6 +168,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) {
ETC delta on v1.17.3 (+7 -0)
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 Version Comparison