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

implement basic state aggregation #155

Merged
merged 6 commits into from
Dec 19, 2024
Merged

implement basic state aggregation #155

merged 6 commits into from
Dec 19, 2024

Conversation

konnov
Copy link
Contributor

@konnov konnov commented Dec 17, 2024

Closes #153. This PR implements basic state aggregation. It's probably the most straightforward approach. We need this for input generation. I believe that a high-performance approach would require much more work, which we do not have in this phase.

@konnov konnov requested a review from thpani December 17, 2024 20:13
@konnov konnov changed the title add basic code for full state aggregation and state load/store implement basic state aggregation Dec 18, 2024
@konnov konnov marked this pull request as ready for review December 18, 2024 18:47
Copy link
Collaborator

@thpani thpani left a comment

Choose a reason for hiding this comment

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

LGTM

solarkraft/src/aggregate.ts Outdated Show resolved Hide resolved
*/
/**
* A command to aggregate the full contract state from the collected transactions.
* This command is potentially expensive. In the long run, it makes sense to
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could say why it is expensive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, added an explanation

solarkraft/src/aggregator/aggregator.ts Outdated Show resolved Hide resolved
solarkraft/src/fetcher/storage.ts Outdated Show resolved Hide resolved
@konnov konnov merged commit de1d92f into main Dec 19, 2024
4 checks passed
@konnov konnov deleted the igor/aggregate-storage153 branch December 19, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accumulate the contract state in fetcher
2 participants