Commit 5ae06b0e authored by Park Changwan's avatar Park Changwan Committed by GitHub

op-node: batch-decoder: Fjord Frame Timestamp fix (#11143)

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

* op-node: batch-decoder: Typo for channel compression algo json key
parent 6577b804
...@@ -25,7 +25,7 @@ type ChannelWithMetadata struct { ...@@ -25,7 +25,7 @@ type ChannelWithMetadata struct {
Frames []FrameWithMetadata `json:"frames"` Frames []FrameWithMetadata `json:"frames"`
Batches []derive.Batch `json:"batches"` Batches []derive.Batch `json:"batches"`
BatchTypes []int `json:"batch_types"` BatchTypes []int `json:"batch_types"`
ComprAlgos []derive.CompressionAlgo `json:"compr_alogs"` ComprAlgos []derive.CompressionAlgo `json:"compr_algos"`
} }
type FrameWithMetadata struct { type FrameWithMetadata struct {
...@@ -101,7 +101,7 @@ func processFrames(cfg Config, rollupCfg *rollup.Config, id derive.ChannelID, fr ...@@ -101,7 +101,7 @@ func processFrames(cfg Config, rollupCfg *rollup.Config, id derive.ChannelID, fr
invalidFrame = true invalidFrame = true
break 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) fmt.Printf("Error adding to channel %v. Err: %v\n", id.String(), err)
invalidFrame = true invalidFrame = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment