Commit f68c098a authored by Joshua Gutow's avatar Joshua Gutow

Add block time

parent 9125a14c
...@@ -21,6 +21,7 @@ type TransactionWithMeta struct { ...@@ -21,6 +21,7 @@ type TransactionWithMeta struct {
InboxAddr common.Address `json:"inbox_address"` InboxAddr common.Address `json:"inbox_address"`
BlockNumber uint64 `json:"block_number"` BlockNumber uint64 `json:"block_number"`
BlockHash common.Hash `json:"block_hash"` BlockHash common.Hash `json:"block_hash"`
BlockTime uint64 `json:"block_time"`
ChainId uint64 `json:"chain_id"` ChainId uint64 `json:"chain_id"`
Sender common.Address `json:"sender"` Sender common.Address `json:"sender"`
ValidSender bool `json:"valid_sender"` ValidSender bool `json:"valid_sender"`
...@@ -100,6 +101,7 @@ func fetchBatchesPerBlock(client *ethclient.Client, number *big.Int, signer type ...@@ -100,6 +101,7 @@ func fetchBatchesPerBlock(client *ethclient.Client, number *big.Int, signer type
TxIndex: uint64(i), TxIndex: uint64(i),
BlockNumber: block.NumberU64(), BlockNumber: block.NumberU64(),
BlockHash: block.Hash(), BlockHash: block.Hash(),
BlockTime: block.Time(),
ChainId: config.ChainID.Uint64(), ChainId: config.ChainID.Uint64(),
InboxAddr: config.BatchInbox, InboxAddr: config.BatchInbox,
Frames: frames, Frames: frames,
......
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