Skip to content

Commit

Permalink
op-node: batch-decoder: Fjord Frame Timestamp fix (ethereum-optimism#…
Browse files Browse the repository at this point in the history
…11143)

* op-node: batch-decoder: Correct timestamp for fjord frames

* op-node: batch-decoder: Typo for channel compression algo json key
  • Loading branch information
pcw109550 authored Jul 22, 2024
1 parent 6577b80 commit 5ae06b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-node/cmd/batch_decoder/reassemble/reassemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ChannelWithMetadata struct {
Frames []FrameWithMetadata `json:"frames"`
Batches []derive.Batch `json:"batches"`
BatchTypes []int `json:"batch_types"`
ComprAlgos []derive.CompressionAlgo `json:"compr_alogs"`
ComprAlgos []derive.CompressionAlgo `json:"compr_algos"`
}

type FrameWithMetadata struct {
Expand Down Expand Up @@ -101,7 +101,7 @@ func processFrames(cfg Config, rollupCfg *rollup.Config, id derive.ChannelID, fr
invalidFrame = true
break
}
if err := ch.AddFrame(frame.Frame, eth.L1BlockRef{Number: frame.InclusionBlock}); err != nil {
if err := ch.AddFrame(frame.Frame, eth.L1BlockRef{Number: frame.InclusionBlock, Time: frame.Timestamp}); err != nil {
fmt.Printf("Error adding to channel %v. Err: %v\n", id.String(), err)
invalidFrame = true
}
Expand Down

0 comments on commit 5ae06b0

Please sign in to comment.