op-node/rollup/derive: Add L2BlockToBlockRef
This is similar to PayloadToBlockRef but takes an interface instead that e.g. a types.Block fulfills. This way, we can directly extract L2BlockRefs from type.Blocks that have a valid L1 Info Deposit tx as first tx. A block could also be converted into an ExecutionPayload, but this would make an inefficient roundtrip, marshalling and unmarshalling all transactions.
Showing
Please register or sign in to comment