• Joshua Gutow's avatar
    op-node: Cleanup calldata source API (#3532) · 53fbf917
    Joshua Gutow authored
    This provides a new set of objects which provide the following API guarantees:
    - The opening of a data for a new L1 block will never.
    - If it failed to get transactions, it does so in the calls to `Next`.
    
    This greatly simplifies usage of this object when constructing new data. If
    the node did not keep track of the internal state, the external users of this
    API would have to keep track of this state in a more complex way.
    Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    53fbf917
calldata_source_test.go 3.83 KB