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

refactor: decompose building into execution and packaging #32

Merged
merged 3 commits into from
Aug 7, 2023

Conversation

jacobkaufmann
Copy link
Owner

@jacobkaufmann jacobkaufmann commented Aug 4, 2023

decompose the payload build into "execution" and "packaging".

there is some common work that must be done for the execution of each transaction. we move execution of a bundle/transaction into a separate function, returning the result of the execution. this also allows us to skip the bundle if it its execution fails, instead of failing the entire payload.

we also define a function to package the block once all transactions have been executed and withdrawals have been processed.

@jacobkaufmann jacobkaufmann marked this pull request as ready for review August 7, 2023 04:03
@jacobkaufmann jacobkaufmann merged commit ce208fe into master Aug 7, 2023
1 check passed
@jacobkaufmann jacobkaufmann deleted the refactor-execution-packaging branch August 12, 2023 20:42
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.

1 participant