-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Block Executor] Refactor view & output traits & mvhashmap #9659
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1239,7 +1239,7 @@ impl AptosVM { | |
change_set: &VMChangeSet, | ||
) -> Result<(), VMStatus> { | ||
assert!( | ||
change_set.aggregator_write_set().is_empty(), | ||
change_set.aggregator_v1_write_set().is_empty(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zekun000 @georgemitenkov There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think @zekun000 should know better, but from my understanding when we want to apply a write set to the chain (e.g. a validator comes online and doesn't want to re-execute transactions and instead applies a write set for faster state sync) we use this type of transaction, not sure how often and how read-before-write is crucial here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. waypoint writeset is for disaster recovery scenarios like losing quorums where we need social consensus for all operators to manually apply some changes on top of db to resume the network |
||
"Waypoint change set should not have any aggregator writes." | ||
); | ||
|
||
|
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.
Are we changing BTreeMap to HashMap for more efficiency?
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.
Yes, correlated but also in general better abstraction, no need for keys to be comparable, or compared.