From f68c098a99d78fabaf9d6df097d43682dc83670d Mon Sep 17 00:00:00 2001
From: Joshua Gutow <jgutow@oplabs.co>
Date: Fri, 10 Mar 2023 10:39:45 -0800
Subject: [PATCH] Add block time

---
 op-node/cmd/batch_decoder/fetch/fetch.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/op-node/cmd/batch_decoder/fetch/fetch.go b/op-node/cmd/batch_decoder/fetch/fetch.go
index da5574922..786230cf3 100644
--- a/op-node/cmd/batch_decoder/fetch/fetch.go
+++ b/op-node/cmd/batch_decoder/fetch/fetch.go
@@ -21,6 +21,7 @@ type TransactionWithMeta struct {
 	InboxAddr   common.Address     `json:"inbox_address"`
 	BlockNumber uint64             `json:"block_number"`
 	BlockHash   common.Hash        `json:"block_hash"`
+	BlockTime   uint64             `json:"block_time"`
 	ChainId     uint64             `json:"chain_id"`
 	Sender      common.Address     `json:"sender"`
 	ValidSender bool               `json:"valid_sender"`
@@ -100,6 +101,7 @@ func fetchBatchesPerBlock(client *ethclient.Client, number *big.Int, signer type
 				TxIndex:     uint64(i),
 				BlockNumber: block.NumberU64(),
 				BlockHash:   block.Hash(),
+				BlockTime:   block.Time(),
 				ChainId:     config.ChainID.Uint64(),
 				InboxAddr:   config.BatchInbox,
 				Frames:      frames,
-- 
2.23.0