Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some opcode price #2020

Merged
merged 11 commits into from
Nov 12, 2020
16 changes: 8 additions & 8 deletions src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ partial class ApplicationEngine
[OpCode.REVERSE4] = 60,
[OpCode.REVERSEN] = 400,
[OpCode.INITSSLOT] = 400,
[OpCode.INITSLOT] = 800,
[OpCode.INITSLOT] = 1600,
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
[OpCode.LDSFLD0] = 60,
[OpCode.LDSFLD1] = 60,
[OpCode.LDSFLD2] = 60,
Expand Down Expand Up @@ -143,8 +143,8 @@ partial class ApplicationEngine
[OpCode.AND] = 200,
[OpCode.OR] = 200,
[OpCode.XOR] = 200,
[OpCode.EQUAL] = 200,
[OpCode.NOTEQUAL] = 200,
[OpCode.EQUAL] = 1000,
[OpCode.NOTEQUAL] = 1000,
[OpCode.SIGN] = 100,
[OpCode.ABS] = 100,
[OpCode.NEGATE] = 100,
Expand All @@ -170,8 +170,8 @@ partial class ApplicationEngine
[OpCode.MIN] = 200,
[OpCode.MAX] = 200,
[OpCode.WITHIN] = 200,
[OpCode.PACK] = 7000,
[OpCode.UNPACK] = 7000,
[OpCode.PACK] = 15000,
[OpCode.UNPACK] = 15000,
[OpCode.NEWARRAY0] = 400,
[OpCode.NEWARRAY] = 15000,
[OpCode.NEWARRAY_T] = 15000,
Expand All @@ -181,11 +181,11 @@ partial class ApplicationEngine
[OpCode.SIZE] = 150,
[OpCode.HASKEY] = 270000,
[OpCode.KEYS] = 500,
[OpCode.VALUES] = 7000,
[OpCode.VALUES] = 270000,
[OpCode.PICKITEM] = 270000,
[OpCode.APPEND] = 15000,
[OpCode.APPEND] = 270000,
[OpCode.SETITEM] = 270000,
[OpCode.REVERSEITEMS] = 500,
[OpCode.REVERSEITEMS] = 270000,
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
[OpCode.REMOVE] = 500,
[OpCode.CLEARITEMS] = 400,
[OpCode.ISNULL] = 60,
Expand Down