Skip to content

Commit 15dcd32

Browse files
authored
Add LatestView to CheckpointBlockInfo endpoint (#589)
1 parent 758d4f8 commit 15dcd32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

routes/transaction.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4360,9 +4360,10 @@ func (fes *APIServer) GetCommittedTipBlockInfo(ww http.ResponseWriter, req *http
43604360
}
43614361
// Return the block tip.
43624362
if err := json.NewEncoder(ww).Encode(&lib.CheckpointBlockInfo{
4363-
Height: blockTip.Header.Height,
4364-
Hash: blockTip.Hash,
4365-
HashHex: blockTip.Hash.String(),
4363+
Height: blockTip.Header.Height,
4364+
Hash: blockTip.Hash,
4365+
HashHex: blockTip.Hash.String(),
4366+
LatestView: fes.backendServer.GetLatestView(),
43664367
}); err != nil {
43674368
_AddBadRequestError(ww, "GetCommittedTipBlockInfo: Problem encoding response as JSON: "+err.Error())
43684369
return

0 commit comments

Comments
 (0)