From a6271f6bf2f39e145150e9faee5599af8214e643 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 7 May 2020 15:42:13 +0300 Subject: [PATCH] vm: reorder splice opcodes --- pkg/vm/opcode/opcode.go | 8 ++++---- pkg/vm/opcode/opcode_string.go | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/vm/opcode/opcode.go b/pkg/vm/opcode/opcode.go index b6641747f..87fe98a53 100644 --- a/pkg/vm/opcode/opcode.go +++ b/pkg/vm/opcode/opcode.go @@ -99,10 +99,10 @@ const ( FROMALTSTACK Opcode = 0x6C // Splice - CAT Opcode = 0x7E - SUBSTR Opcode = 0x7F - LEFT Opcode = 0x80 - RIGHT Opcode = 0x81 + CAT Opcode = 0x8B + SUBSTR Opcode = 0x8C + LEFT Opcode = 0x8D + RIGHT Opcode = 0x8E // Bitwise logic INVERT Opcode = 0x90 diff --git a/pkg/vm/opcode/opcode_string.go b/pkg/vm/opcode/opcode_string.go index ad726d7e0..747556a7f 100644 --- a/pkg/vm/opcode/opcode_string.go +++ b/pkg/vm/opcode/opcode_string.go @@ -85,10 +85,10 @@ func _() { _ = x[DUPFROMALTSTACK-106] _ = x[TOALTSTACK-107] _ = x[FROMALTSTACK-108] - _ = x[CAT-126] - _ = x[SUBSTR-127] - _ = x[LEFT-128] - _ = x[RIGHT-129] + _ = x[CAT-139] + _ = x[SUBSTR-140] + _ = x[LEFT-141] + _ = x[RIGHT-142] _ = x[INVERT-144] _ = x[AND-145] _ = x[OR-146] @@ -220,10 +220,10 @@ var _Opcode_map = map[Opcode]string{ 106: _Opcode_name[414:429], 107: _Opcode_name[429:439], 108: _Opcode_name[439:451], - 126: _Opcode_name[451:454], - 127: _Opcode_name[454:460], - 128: _Opcode_name[460:464], - 129: _Opcode_name[464:469], + 139: _Opcode_name[451:454], + 140: _Opcode_name[454:460], + 141: _Opcode_name[460:464], + 142: _Opcode_name[464:469], 144: _Opcode_name[469:475], 145: _Opcode_name[475:478], 146: _Opcode_name[478:480],