-
Notifications
You must be signed in to change notification settings - Fork 36
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
Applied snapshot balances #1280
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7032bbc
Applied snapshot balances
esuwu 12b2a6a
Save initial block snapshot.
nickeskov 06b4826
MinerPayout diff
esuwu d34e5e4
Applied initial snapshot
esuwu ea4c7b5
Logged snapshots
esuwu f4bccda
Added a parser
esuwu 0310858
Fixed 0 change case
esuwu cfcef08
supported legacy state hashes
esuwu ad0feed
Logged a height
esuwu df98980
Handled failed transaction
esuwu 7298bc1
Fixed a mistake of not adding failed changes to snapshot
esuwu 5b5f7b8
Fixed a problem with special asset balance snapshot
esuwu 2658378
Removed unnecessary comments, stagenet ok
esuwu 94976ce
Fixed linter issues, added validation
esuwu ece4de6
Use 'calculate hashes' flag.
nickeskov 406567a
Move deferred hasher release to its initialization.
nickeskov 5de5389
Use 'newestConstInfo' in 'balances.calculateStateHashesAssetBalance'.
nickeskov 31e8fd1
Refactor just issued assets in snapshot generator.
nickeskov 3df4ac4
Refactor 'snapshotGenerator.assetBalanceSnapshotFromBalanceDiff'.
nickeskov b8ec4e1
Refactor 'stateForHashes' methods.
nickeskov f8b0ab8
Removed TODOs, added validation
esuwu 673064b
Improved validation a bit in 'snapshotGenerator.balanceDiffFromTxDiff'.
nickeskov b322adb
Revert "Save initial block snapshot."
nickeskov 6d883a9
Merge branch 'master' into snapshots-apply-balances
esuwu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
It's important to do these actions in
snapshotApplier
because only this entity (mostly) can change the state in the light node mode.