Open jacobkaufmann opened 1 year ago
another benefit here is that the job will not require a StateProviderFactory
, which will make the job easier to test
Hey @jacobkaufmann, I'm interested to work on this.
let's wait until this is merged
let's wait until this is merged
Sure.
currently each payload build task retrieves the state for the given parent block hash (below).
https://github.com/jacobkaufmann/dark-builder/blob/170b23d9ead00eeaa24113affac0ca681014254a/src/builder.rs#L164
we should cache this state when the job is constructed instead.
state_by_block_hash
returns aStateProviderBox
which is not the most straightforward to work with.