Skip to content

Commit

Permalink
feat: include block timestamp in BlockFile from api (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: bestmike007 <i@bestmike007.com>
  • Loading branch information
bestmike007 authored Mar 2, 2024
1 parent 8511cde commit 1be7f22
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 427 deletions.
15 changes: 8 additions & 7 deletions internal/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,14 @@ func (s *Server) newBlockFile(block *api.BlockMetadata) (*api.BlockFile, error)
}

return &api.BlockFile{
Tag: block.Tag,
Hash: block.Hash,
ParentHash: block.ParentHash,
Height: block.Height,
ParentHeight: block.ParentHeight,
FileUrl: fileUrl,
Compression: compression,
Tag: block.Tag,
Hash: block.Hash,
ParentHash: block.ParentHash,
Height: block.Height,
ParentHeight: block.ParentHeight,
FileUrl: fileUrl,
Compression: compression,
BlockTimestamp: block.Timestamp,
}, nil
}

Expand Down
Loading

0 comments on commit 1be7f22

Please sign in to comment.