jacobkaufmann / evangelion

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

refactor: decompose building into execution and packaging #32

Closed jacobkaufmann closed 1 year ago

jacobkaufmann commented 1 year ago

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.