Skip to content

Commit

Permalink
expose public key
Browse files Browse the repository at this point in the history
  • Loading branch information
blade committed Apr 3, 2024
1 parent efe9a09 commit c8007b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gateway_server/internal/models/qos_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package models
import "time"

type PublicQosNode struct {
NodePublicKey string `json:"node_public_key"`
ServiceUrl string `json:"service_url"`
Chain string `json:"chain"`
SessionHeight uint `json:"session_height"`
Expand Down
1 change: 1 addition & 0 deletions cmd/gateway_server/internal/transform/qos_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func ToPublicQosNode(node *internal_model.QosNode) *models.PublicQosNode {
latency = 0.0
}
return &models.PublicQosNode{
NodePublicKey: node.MorseNode.PublicKey,
ServiceUrl: node.MorseNode.ServiceUrl,
Chain: node.GetChain(),
SessionHeight: node.MorseSession.SessionHeader.SessionHeight,
Expand Down

0 comments on commit c8007b2

Please sign in to comment.