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

core: RC1 states dumps compatibility fixes #1869

Merged
merged 4 commits into from
Mar 29, 2021
Merged

Conversation

AnnaShaleva
Copy link
Member

Problem

States diffs.

@AnnaShaleva AnnaShaleva added the bug Something isn't working label Mar 29, 2021
@codecov
Copy link

codecov bot commented Mar 29, 2021

Codecov Report

Merging #1869 (b7194ec) into master (5b4f6d2) will decrease coverage by 0.05%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1869      +/-   ##
==========================================
- Coverage   83.10%   83.05%   -0.06%     
==========================================
  Files         286      286              
  Lines       22649    22661      +12     
==========================================
- Hits        18823    18820       -3     
- Misses       2641     2654      +13     
- Partials     1185     1187       +2     
Impacted Files Coverage Δ
pkg/core/native/native_neo.go 70.34% <57.14%> (-2.49%) ⬇️
pkg/services/notary/notary.go 92.42% <0.00%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b4f6d2...b7194ec. Read the comment docs.

C# node returns an error if the candidate is not registered. We have this
check inside the ModifyAccountVotes, but (*NEO).vote doesn't panics and
just return bool on stack, so we should match exactly the C#'s
algorithm.
After getting account from the storage there are a lot of checks which
may fail. But C# node uses Snapshot.GetAndChange, so the account state
should be put in the storage even in case of vote failure. Affects
dumps.
C# node uses Snapshot.GetAndChange to get it from storage, so it's the
same problem as with voting account. Affects dumps.
@AnnaShaleva AnnaShaleva force-pushed the testnet-storage-fixes branch from 2e44b23 to b7194ec Compare March 29, 2021 14:08
@roman-khimov roman-khimov added this to the v0.94.1 milestone Mar 29, 2021
@roman-khimov roman-khimov merged commit 1bd3ee2 into master Mar 29, 2021
@roman-khimov roman-khimov deleted the testnet-storage-fixes branch March 29, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants