• Sebastian Stammler's avatar
    op-node/rollup/derive: Add L2BlockToBlockRef · 0fd7076a
    Sebastian Stammler authored
    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.
    0fd7076a
l2block_util.go 2.04 KB