-
Notifications
You must be signed in to change notification settings - Fork 101
core, util: attach stateroot witness to NeoFS state objects #4099
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
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4099 +/- ##
==========================================
- Coverage 83.50% 83.31% -0.20%
==========================================
Files 353 353
Lines 42827 42925 +98
==========================================
Hits 35764 35764
- Misses 5305 5401 +96
- Partials 1758 1760 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'll test this code on real network once we finalize the PR. |
e0fdcb0 to
a26d6a8
Compare
a26d6a8 to
3d7e28d
Compare
|
|
8aacb96 to
c902752
Compare
c902752 to
285b09f
Compare
A part of #4049. Signed-off-by: Anna Shaleva <[email protected]>
Oracle, StateRoot and Notary services should properly react to state jump (either occured after state reset or after statesync finalization). Otherwise, these services use an out-of-date roles information retrieved from the previous node state. Signed-off-by: Anna Shaleva <[email protected]>
A part of #4049. 1. Check the stateroot witness. 2. Ensure witness' public keys match block's validators at the state sync height. Signed-off-by: Anna Shaleva <[email protected]>
This callback is set when module is not active yet, no locking required. Signed-off-by: Anna Shaleva <[email protected]>
(*Module).syncStage is a subject of change, it may be updated by statechanging Module's callbacks concurrently. Signed-off-by: Anna Shaleva <[email protected]>
28b9f94 to
24a3003
Compare
Signed-off-by: Anna Shaleva <[email protected]>
24a3003 to
b340085
Compare
Close #4049.
As an alternative, we may consider attaching a full serialized stateroot instead of just witness (right now stateroot version is missing from the state object which may be a problem in future if stateroot version will be changed).