Skip to content

Commit 0af309b

Browse files
committed
Removed logging in dissasembler
1 parent cb6d23e commit 0af309b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Phantasma.Neo/Core/Disassembler.cs

+2-7
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ public static AVMDisassemble Disassemble(byte[] script,bool breakAtRet = false)
284284

285285
case OpCode.PUSHDATA1:
286286
{
287-
Console.WriteLine($" at {entry.startOfs}");
288287
var len = reader.ReadByte();
289288
entry.data = reader.ReadBytes(len);
290289
entry.comment = "Pushes " + len + " bytes into the stack: $$";
@@ -293,7 +292,6 @@ public static AVMDisassemble Disassemble(byte[] script,bool breakAtRet = false)
293292

294293
case OpCode.PUSHDATA2:
295294
{
296-
Console.WriteLine($" at {entry.startOfs}");
297295
var len = reader.ReadUInt16();
298296
entry.data = reader.ReadBytes(len);
299297
entry.comment = "Pushes " + len + " bytes into the stack: $$";
@@ -303,7 +301,6 @@ public static AVMDisassemble Disassemble(byte[] script,bool breakAtRet = false)
303301

304302
case OpCode.PUSHDATA4:
305303
{
306-
Console.WriteLine($" at {entry.startOfs}");
307304
var len = reader.ReadInt32();
308305
entry.data = reader.ReadBytes(len);
309306
entry.comment = "Pushes " + len + " bytes into the stack: $$";
@@ -313,15 +310,13 @@ public static AVMDisassemble Disassemble(byte[] script,bool breakAtRet = false)
313310
case OpCode.CALL:
314311
case OpCode.CALL_I:
315312
{
316-
Console.WriteLine($" at {entry.startOfs}");
317313
int other = reader.ReadInt16();
318314
int offset = reader.ReadInt16();
319315
break;
320316
}
321317
case OpCode.CALL_E:
322318
case OpCode.CALL_ET:
323319
{
324-
Console.WriteLine($" at {entry.startOfs}");
325320
int other = reader.ReadInt16();
326321
byte[] script_hash = reader.ReadBytes(20);
327322
entry.data = script_hash.Reverse().ToArray();
@@ -358,11 +353,11 @@ public static AVMDisassemble Disassemble(byte[] script,bool breakAtRet = false)
358353

359354
default:
360355
{
361-
if (!Enum.IsDefined(typeof(OpCode), opcode))
356+
/*if (!Enum.IsDefined(typeof(OpCode), opcode))
362357
{
363358
var s = ((byte)opcode).ToString();
364359
Console.WriteLine($"Invalid opcode {s} at {entry.startOfs}");
365-
}
360+
}*/
366361

367362
break;
368363
}

0 commit comments

Comments
 (0)