-
Notifications
You must be signed in to change notification settings - Fork 100
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
[StateService] Storage and P2P #431
Merged
superboyiii
merged 45 commits into
neo-project:master
from
ZhangTao1596:state-service-storage
Jan 18, 2021
Merged
[StateService] Storage and P2P #431
superboyiii
merged 45 commits into
neo-project:master
from
ZhangTao1596:state-service-storage
Jan 18, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tommo-L
reviewed
Dec 19, 2020
Tommo-L
reviewed
Dec 19, 2020
Tommo-L
reviewed
Dec 19, 2020
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
ZhangTao1596
commented
Dec 21, 2020
36 tasks
erikzhang
reviewed
Dec 21, 2020
erikzhang
reviewed
Dec 22, 2020
Merge? |
Wait for neo-project/neo#2101 |
erikzhang
reviewed
Jan 13, 2021
erikzhang
reviewed
Jan 13, 2021
Merge? I have subsequent pr. |
shargon
reviewed
Jan 15, 2021
shargon
reviewed
Jan 15, 2021
shargon
reviewed
Jan 15, 2021
shargon
approved these changes
Jan 16, 2021
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.
We can merge it and continue with the pending tasks.
We should merge this. |
I'll make integration test when these 3 completed. Merge this first. |
joeqian10
pushed a commit
to joeqian10/neo-modules
that referenced
this pull request
Apr 7, 2021
* make leveldb public * storage * rename folder * update neo * Fix end of line marker * file encoding * Update src/StateService/Network/StateRoot.cs Co-authored-by: Luchuan <luchuan@ngd.neo.org> * fix some * recover levelDB * use neo LoadStore * clean project file * Update MPTNode.cs * add p2p * internal payload category * update neo and remove OnVerifiedInventory * null check and clean StateStore and clean settings * remove IP2PPlugin interface impl * clean settings * Update Settings.cs * Remove StatePlugin.Persistence.cs * clean actor system * Fix StatePlugin * Optimize * format * remove StoreDataCache and StoreMetaDataCache * remove StoreDataCache from mpt * Optimize * sync OnPersist Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: Erik Zhang <erik@neo.org> Co-authored-by: Luchuan <luchuan@ngd.neo.org> Co-authored-by: Owen Zhang <38493437+superboyiii@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Step 1/3 StateService
Since there are too many changes in StateService, I will split it into 3 parts to commit pull request, and this is the 1st.
Changes:
IPersistencePlugin
interface, copy block changes to calculate root hash when block persisting.StateStorage
to store local state root hash and latest valiated hash and state tree.StateSnapthot
, it's the snapshot ofStateStorage
.StateRoot
, it contains root hash of specific index and signatures of state validators.StateRoot
inExtensiblePayload
.