-
Notifications
You must be signed in to change notification settings - Fork 146
Revert the restrictions of NUMEQUAL and NUMNOTEQUAL #126
Conversation
@wowoyinwei Please test this pr for NNC. |
Codecov Report
@@ Coverage Diff @@
## master-2.x #126 +/- ##
==============================================
- Coverage 80.56% 80.54% -0.02%
==============================================
Files 45 45
Lines 4584 4580 -4
==============================================
- Hits 3693 3689 -4
Misses 891 891
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me check this a little bit more.
I like this idea of two masters, @erikzhang, which one will generate the current release of the NEO core? I am testing the storage changes, I need some more couple of time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
I think we should abolish these opcodes as soon as possible (for Neo 3.0), and keep only bytearray comparison.
To ensure numbers are correct, we could enforce this with previous arithmetic expressions or a CAST opcode (to make sure stackitem is that).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff -rq StorageBase StorageNew | grep diff
Files StorageBase/BlockStorage_400000/dump-block-372426.json and StorageNew/BlockStorage_400000/dump-block-372426.json differ
Files StorageBase/BlockStorage_400000/dump-block-373083.json and StorageNew/BlockStorage_400000/dump-block-373083.json differ
Files StorageBase/BlockStorage_400000/dump-block-373135.json and StorageNew/BlockStorage_400000/dump-block-373135.json differ
Files StorageBase/BlockStorage_400000/dump-block-373168.json and StorageNew/BlockStorage_400000/dump-block-373168.json differ
Files StorageBase/BlockStorage_400000/dump-block-373299.json and StorageNew/BlockStorage_400000/dump-block-373299.json differ
Files StorageBase/BlockStorage_400000/dump-block-373525.json and StorageNew/BlockStorage_400000/dump-block-373525.json differ
Files StorageBase/BlockStorage_400000/dump-block-373747.json and StorageNew/BlockStorage_400000/dump-block-373747.json differ
Files StorageBase/BlockStorage_400000/dump-block-373757.json and StorageNew/BlockStorage_400000/dump-block-373757.json differ For example, with this PR: The current master: |
Here are the scripts for neo-cli clients assert. Right now it is just checking storage differences. https://github.com/NeoResearch/neo-tests/tree/master/clients-assert-testnet |
Using this pr to resynchronize the data , the NNC contract can be found correctly. |
In NEO 3.0, we need to keep the restrictions on
NUMEQUAL
andNUMNOTEQUAL
. So, from now there will be two master branches:master
is for NEO 3.0, andmaster-2.x
is for NEO 2.x.Closes #123