-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Improvement RGB Isa instructions #201
Conversation
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.
Very good work!
I think we need to get rid of old commands - I do not see the usecase for the fixed index. If someone needs one, it is just two instructions, one to load the fixed index into a register.
Can you pls re-work PR by not adding new operations and instead modifying existing ones?
Today, only the UDA uses these two instructions with fixed indexes. I can change the code after rgb-core new release.
Yes, I will make that! |
Yes. But I will update the UDA script then |
Ok, sure. I reviewed the UDA script and I noticed the |
Yes, correct. We than can push constant number to a register and just add one instruction to the script in front of |
Hi @dr-orlovsky, I was thinking, Is this separation due to operations such as Genesis, Transition and Enxtension? |
They are not. |
Thanks for reply! BTW, I finish the changes! |
Can you pls re-do this PR against Also can you please run |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #201 +/- ##
======================================
Coverage 15.5% 15.5%
======================================
Files 33 33
Lines 4165 4158 -7
======================================
Hits 644 644
+ Misses 3521 3514 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
I found several logical mistakes i the past and new code, which we have to address
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.
Pls see my comment
amazing stuff |
Adding a global contract state seems to be very challenging and will require refactoring validation workflow: #208 I propose to restrict this PR to the changes in already implemented instructions - and leave |
Great!
I think you mean |
Yes |
List of things I have changed:
|
Most of these things I proved in 8752e06, but in other commitments as well |
Maxim, I think I found other issues, I will publish new commit. Can you review, please? |
Sure! |
@crisdut why do you think we need this? |
Oh Sorry, I understood that it was necessary to make these changes to follow with change in registers, but it really makes sense to avoid these changes. I force-push it to remove it. |
Tank you! I know this thing is confusing - I even did the same myself during work on this PR and then recalled that Probably I have to rename types in |
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.
LGTM, but I need your approval on my changes, that I do not miss something - and then I will merge
I tested here and the code works. ACK. |
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.
ACK 010603f
@crisdut could you please rebase this on top of master? otherwise it doesn't compile in rgb-lib |
This is very strange, could you add here the reason for the problem. It is worth remembering that as we changed the AluVM instructions, we also need to update the rgb-schemata as well, as all instructions that used fixed indexes now use registers. |
If you prefer, I can open the PR containing the changes and then you can test it with the two updated crates. What do you think? |
@crisdut I think the reason that we break the AluVM compatibility, this first we need to update schemata with a different code |
Yes, I believe that's exactly what it is. But we need to not only change the |
BTW, @zoedberg I created two draft PRs, please see: Could you check if the problem persists with these PRs? If yes, please post the error log in the thread. Hope this helps |
Correct |
@crisdut I've patched the 2 PRs and now it compiles. I've ran rgb-lib's test suite and everything works good so I think we can merge your PRs. |
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.
ACK 010603f
Description
This PR intent:
cng
andcnc
.lds
andldg
with registers [1].cnp
,cns
,cng
andcnc
[1] Depends: