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

compute coinbase payment for execution #35

Merged
merged 4 commits into from
Aug 9, 2023
Merged

Conversation

jacobkaufmann
Copy link
Owner

add coinbase_payment field to Execution to track the payment to the block's coinbase, which we assume to represent the builder.

we compute coinbase_payment based on the pre and post execution balance of the account at address coinbase. this calculation includes priority fees (i.e. tips) and any other transfers to coinbase. among other things, the calculation does not account for expenditures from the coinbase account. subsequent changes can make the calculation more flexible/robust.

@jacobkaufmann jacobkaufmann merged commit 4217fcd into master Aug 9, 2023
1 check passed
@jacobkaufmann jacobkaufmann deleted the coinbase-payments 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