Skip to content

Commit 1be7f22

Browse files
authored
feat: include block timestamp in BlockFile from api (#98)
Signed-off-by: bestmike007 <i@bestmike007.com>
1 parent 8511cde commit 1be7f22

File tree

3 files changed

+442
-427
lines changed

3 files changed

+442
-427
lines changed

internal/server/handler.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,14 @@ func (s *Server) newBlockFile(block *api.BlockMetadata) (*api.BlockFile, error)
719719
}
720720

721721
return &api.BlockFile{
722-
Tag: block.Tag,
723-
Hash: block.Hash,
724-
ParentHash: block.ParentHash,
725-
Height: block.Height,
726-
ParentHeight: block.ParentHeight,
727-
FileUrl: fileUrl,
728-
Compression: compression,
722+
Tag: block.Tag,
723+
Hash: block.Hash,
724+
ParentHash: block.ParentHash,
725+
Height: block.Height,
726+
ParentHeight: block.ParentHeight,
727+
FileUrl: fileUrl,
728+
Compression: compression,
729+
BlockTimestamp: block.Timestamp,
729730
}, nil
730731
}
731732

0 commit comments

Comments
 (0)