This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
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.
BABE's revert procedure #11022
BABE's revert procedure #11022
Changes from 8 commits
a80baae
a494b12
e8c1640
3e95228
cbbd61f
301f55a
2cf3e1c
71ae24d
c052a28
81f8f85
a418f81
de1ede9
41b192e
042b0ea
b9d1549
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The aux data revert can be made atomic by returning a
Vec<(Vec<u8>, Option<Vec<u8>>)>
.This vector has the same purpose of
BlockImportParams::auxiliary
for block import, i.e. perform a bunch of operations on aux data atomically together with blockchain state operations.The only drawback is that currently the blockchain state is reverted one block at a time (see here). If we want an "atomic" revert of "aux-data + blockchain-state" then we will have to call
AuxRevertHandler
multiple times as well (once for each reverted block)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.
I am surprised we do not support begin/commit/rollback transaction for batching multiple mutations across aux and main state storage already.