-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Commit per epoch config load to effects v2 #18501
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
6827992
to
f38a71c
Compare
@@ -595,4 +607,6 @@ pub enum UnchangedSharedKind { | |||
ReadDeleted(SequenceNumber), | |||
/// Shared objects in cancelled transaction. The sequence number embed cancellation reason. | |||
Cancelled(SequenceNumber), | |||
/// Read of a per-epoch config object that should remain the same during an epoch. | |||
PerEpochConfig, |
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.
this requires a new protocol version, right?
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 per epoch config object is only checked when coin deny list v2 is enabled, and hence is already behind a new protocol version.
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.
got it
@@ -140,38 +141,43 @@ pub fn check_coin_deny_list_v2_during_execution( | |||
.entry(coin_type.to_canonical_string(false)) | |||
.or_insert_with(BTreeSet::new) | |||
.insert(owner); | |||
num_regulated_transfers += 1; |
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.
why is this incremented here, instead of after line 149?
Description
Commit per epoch config object load to effects.
This is done by introducing another variant to UnchangedSharedObject.
This does not need to be in input shared objects since it's not a sequenced input object.
This however does mean that this will not be added to the UnchangedSharedObject graphql rpc types since that relies on the input shared objects.
Test plan
CI
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.