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

vm: fix MODPOW operation #3649

Merged
merged 1 commit into from
Oct 31, 2024
Merged

vm: fix MODPOW operation #3649

merged 1 commit into from
Oct 31, 2024

Conversation

AliceInHunterland
Copy link
Contributor

Close #3612

AnnaShaleva added a commit to neo-project/neo that referenced this pull request Oct 28, 2024
We need to ensure that NeoGo VM behaviour is compatible, ref.
nspcc-dev/neo-go#3649.

Signed-off-by: Anna Shaleva <[email protected]>
pkg/vm/vm.go Outdated Show resolved Hide resolved
pkg/vm/vm_test.go Outdated Show resolved Hide resolved
pkg/vm/vm.go Outdated Show resolved Hide resolved
AnnaShaleva added a commit to neo-project/neo that referenced this pull request Oct 28, 2024
We need to ensure that NeoGo VM behaviour is compatible, ref.
nspcc-dev/neo-go#3649.

Signed-off-by: Anna Shaleva <[email protected]>
@AnnaShaleva
Copy link
Member

Also please, add one more compatibility test from neo-project/neo#3557: (5 ^ -1) % 4 == 1

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.19%. Comparing base (b8a65d3) to head (b24144a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3649      +/-   ##
==========================================
- Coverage   83.26%   83.19%   -0.07%     
==========================================
  Files         334      334              
  Lines       46488    46494       +6     
==========================================
- Hits        38707    38681      -26     
- Misses       6205     6240      +35     
+ Partials     1576     1573       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

shargon added a commit to neo-project/neo that referenced this pull request Oct 29, 2024
We need to ensure that NeoGo VM behaviour is compatible, ref.
nspcc-dev/neo-go#3649.

Signed-off-by: Anna Shaleva <[email protected]>
Co-authored-by: Shargon <[email protected]>
pkg/vm/vm.go Show resolved Hide resolved
pkg/vm/vm.go Show resolved Hide resolved
pkg/vm/vm.go Outdated Show resolved Hide resolved
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

pkg/vm/vm.go Outdated Show resolved Hide resolved
Close #3612

Signed-off-by: Ekaterina Pavlova <[email protected]>
@AnnaShaleva AnnaShaleva merged commit a4633ce into master Oct 31, 2024
30 checks passed
@AnnaShaleva AnnaShaleva deleted the vm-modpow branch October 31, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modpow operation returns wrong results when base is negative
2 participants