Skip to content

Commit

Permalink
fix l1blockRef mtime defination
Browse files Browse the repository at this point in the history
  • Loading branch information
flywukong committed Mar 3, 2025
1 parent d1eb66f commit 3c284e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-service/eth/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ type L1BlockRef struct {
Hash common.Hash `json:"hash"`
Number uint64 `json:"number"`
ParentHash common.Hash `json:"parentHash"`
Time uint64 `json:"timestamp"`
mTime uint64 `json:"timestamp"` // millisecond representation
Time uint64 `json:"timestamp"` // second timestamp
mTime uint64 `json:"msTimestamp"` // support millisecond
}

func (id L1BlockRef) MilliTimestamp() uint64 {
Expand Down

0 comments on commit 3c284e5

Please sign in to comment.