Skip to content
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

[core] Add effects digest to follower API + checkpoints #2421

Merged
merged 6 commits into from
Jun 6, 2022

Conversation

gdanezis
Copy link
Collaborator

@gdanezis gdanezis commented Jun 5, 2022

This PR extends the information in UpdateItems sent by the follower API, as well as the information stored in checkpoints from only containing a TransactionDigest to also containing the TransactionEffectsDigest, in a new structure that we call ExecutionDigest.

@gdanezis gdanezis requested a review from lxfind June 5, 2022 10:49
@gdanezis
Copy link
Collaborator Author

gdanezis commented Jun 5, 2022

This PR fulfils 1/4 items in #2039

@gdanezis gdanezis requested a review from lanvidr June 5, 2022 10:53
pub struct TransactionEffectsDigest(
#[schemars(with = "Base64")]
#[serde_as(as = "Readable<Base64, Bytes>")]
pub [u8; TRANSACTION_DIGEST_LENGTH],
pub [u8; 32],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the const var?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, let me put it back in!

@gdanezis gdanezis force-pushed the add-effects-to-follower branch from fef1812 to 34baf4d Compare June 6, 2022 09:23
@gdanezis gdanezis merged commit 50300a4 into main Jun 6, 2022
@gdanezis gdanezis deleted the add-effects-to-follower branch June 6, 2022 10:02
stella3d pushed a commit that referenced this pull request Jun 7, 2022
* Add structures for ExecutionDigest
* Into point
* Add effects digest to follower / checkpoints
* Add const length

Co-authored-by: George Danezis <george@danez.is>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants