jacobkaufmann / evangelion

a prototype ethereum block builder
Apache License 2.0
84 stars 10 forks source link

compute coinbase payment for execution #35

Closed jacobkaufmann closed 1 year ago

jacobkaufmann commented 1 year ago

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.