-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist complete collection in the private blockstore (#2010)
- In the current code, we trim the collection to match the key-values present in the booting snapshot. As per the current design assumption, this suffices for transferring the private data to another peer may bootstrap from the same or a newer snapshot at a later point in time. However, a possibility of booting a peer from an older snapshot (or from genesis block) cannot be ruled out and is good to be able to support. This commit allows for the above by not removing the unused key-values (if any) from the collection data for a transaction. - Also fixes a bug by skipping a check; wherein we check for the transaction validation flag before applying the missing private data. Because, in the snapshot state, the data appears only from the valid transactions Signed-off-by: manish <manish.sethi@gmail.com>
- Loading branch information
1 parent
4e2ac6f
commit 0ee3295
Showing
3 changed files
with
122 additions
and
46 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