-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Applied snapshot balances * Save initial block snapshot. * MinerPayout diff * Applied initial snapshot * Logged snapshots * Added a parser * Fixed 0 change case * supported legacy state hashes * Logged a height * Handled failed transaction * Fixed a mistake of not adding failed changes to snapshot * Fixed a problem with special asset balance snapshot * Removed unnecessary comments, stagenet ok * Fixed linter issues, added validation * Use 'calculate hashes' flag. * Move deferred hasher release to its initialization. * Use 'newestConstInfo' in 'balances.calculateStateHashesAssetBalance'. * Refactor just issued assets in snapshot generator. * Refactor 'snapshotGenerator.assetBalanceSnapshotFromBalanceDiff'. * Refactor 'stateForHashes' methods. * Removed TODOs, added validation * Improved validation a bit in 'snapshotGenerator.balanceDiffFromTxDiff'. * Revert "Save initial block snapshot." This reverts commit 12b2a6a. According to the scala node implementation: - Saved block snapshot must not contain initial block snapshot. - Light node can calculate all initial data by its own. --------- Co-authored-by: Nikolay Eskov <[email protected]>
- Loading branch information
Showing
12 changed files
with
531 additions
and
341 deletions.
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.