Skip to content

Commit

Permalink
deployment: Add PeerID to node view (#15455)
Browse files Browse the repository at this point in the history
* deployment: Include PeerID in node view

* nix: Update flake
  • Loading branch information
archseer authored Dec 2, 2024
1 parent 18cb44e commit 26734ba
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 2 additions & 0 deletions deployment/common/view/nops.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
type NopView struct {
// NodeID is the unique identifier of the node
NodeID string `json:"nodeID"`
PeerID string `json:"peerID"`
IsBootstrap bool `json:"isBootstrap"`
OCRKeys map[string]OCRKeyView `json:"ocrKeys"`
PayeeAddress string `json:"payeeAddress"`
Expand Down Expand Up @@ -49,6 +50,7 @@ func GenerateNopsView(nodeIds []string, oc deployment.OffchainClient) (map[strin
}
nop := NopView{
NodeID: node.NodeID,
PeerID: node.PeerID.String(),
IsBootstrap: node.IsBootstrap,
OCRKeys: make(map[string]OCRKeyView),
PayeeAddress: node.AdminAddr,
Expand Down
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{pkgs, isCrib}:
with pkgs; let
go = go_1_21;
go = go_1_23;
postgresql = postgresql_15;
nodejs = nodejs-18_x;
nodePackages = pkgs.nodePackages.override {inherit nodejs;};
Expand Down

0 comments on commit 26734ba

Please sign in to comment.