Skip to content

Commit

Permalink
feat(guardian-prover-health-check): add prover address to healthcheck…
Browse files Browse the repository at this point in the history
… endpoint (#17246)

Co-authored-by: Daniel Wang <[email protected]>
  • Loading branch information
KorbinianK and dantaik authored May 21, 2024
1 parent 293618e commit cc718b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/guardian-prover-health-check/http/get_signed_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ var (
)

type block struct {
BlockHash string `json:"blockHash"`
Signature string `json:"signature"`
GuardianProverID uint64 `json:"guardianProverID"`
BlockHash string `json:"blockHash"`
Signature string `json:"signature"`
GuardianProverID uint64 `json:"guardianProverID"`
GuardianProverAddress string `json:"guardianProverAddress"`
}

// map of blockID to signed block data
Expand Down Expand Up @@ -98,9 +99,10 @@ func (srv *Server) GetSignedBlocks(c echo.Context) error {
// to the signed blocks for each prover by that block ID.
for _, v := range signedBlocks {
b := block{
GuardianProverID: v.GuardianProverID,
BlockHash: v.BlockHash,
Signature: v.Signature,
GuardianProverID: v.GuardianProverID,
GuardianProverAddress: v.RecoveredAddress,
BlockHash: v.BlockHash,
Signature: v.Signature,
}

if _, ok := blocks[v.BlockID]; !ok {
Expand Down

0 comments on commit cc718b8

Please sign in to comment.