aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/opcodes.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2019-08-08 17:07:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-08-08 17:07:23 +0800
commit3e993ff64a9c2e9651fae11aaee55032cd6b0c3e (patch)
treea41e37be7f46f3fb2a3a7a0025587770d67f149e /core/vm/opcodes.go
parentf3478f2899e80d59d15956ae408fab93cf26254d (diff)
downloadgo-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar.gz
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar.bz2
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar.lz
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar.xz
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.tar.zst
go-tangerine-3e993ff64a9c2e9651fae11aaee55032cd6b0c3e.zip
Eip 1884 v3 (#19743)
* core/vm, tests: implement EIP 1884, add support for feature-tests * core/vm: 1884-changes to extcodehash, move selfbalance opcode * tests: fix statetests * core/vm: move constants, address review concerns * core/vm: word formatting Co-Authored-By: Péter Szilágyi <peterke@gmail.com>
Diffstat (limited to 'core/vm/opcodes.go')
-rw-r--r--core/vm/opcodes.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go
index 4349ffd29..b385fd14a 100644
--- a/core/vm/opcodes.go
+++ b/core/vm/opcodes.go
@@ -101,6 +101,7 @@ const (
NUMBER
DIFFICULTY
GASLIMIT
+ SELFBALANCE = 0x47
)
// 0x50 range - 'storage' and execution.
@@ -271,12 +272,13 @@ var opCodeToString = map[OpCode]string{
EXTCODEHASH: "EXTCODEHASH",
// 0x40 range - block operations.
- BLOCKHASH: "BLOCKHASH",
- COINBASE: "COINBASE",
- TIMESTAMP: "TIMESTAMP",
- NUMBER: "NUMBER",
- DIFFICULTY: "DIFFICULTY",
- GASLIMIT: "GASLIMIT",
+ BLOCKHASH: "BLOCKHASH",
+ COINBASE: "COINBASE",
+ TIMESTAMP: "TIMESTAMP",
+ NUMBER: "NUMBER",
+ DIFFICULTY: "DIFFICULTY",
+ GASLIMIT: "GASLIMIT",
+ SELFBALANCE: "SELFBALANCE",
// 0x50 range - 'storage' and execution.
POP: "POP",
@@ -444,6 +446,7 @@ var stringToOp = map[string]OpCode{
"NUMBER": NUMBER,
"DIFFICULTY": DIFFICULTY,
"GASLIMIT": GASLIMIT,
+ "SELFBALANCE": SELFBALANCE,
"POP": POP,
"MLOAD": MLOAD,
"MSTORE": MSTORE,