Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Update getClusterNodes response
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Sep 3, 2024
1 parent 510ea83 commit 1c6e77f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/rpc-api/src/__tests__/get-cluster-nodes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ describe('getClusterNodes', () => {
pubkey,
pubsub: expect.stringMatching(/127.0.0.1(:\d+)?/),
rpc,
serveRepair: expect.stringMatching(/127.0.0.1(:\d+)?/),
shredVersion,
tpu: expect.stringMatching(/127.0.0.1(:\d+)?/),
tpuForwards: expect.stringMatching(/127.0.0.1(:\d+)?/),
tpuForwardsQuic: expect.stringMatching(/127.0.0.1(:\d+)?/),
tpuQuic: expect.stringMatching(/127.0.0.1(:\d+)?/),
tpuVote: expect.stringMatching(/127.0.0.1(:\d+)?/),
tvu: expect.stringMatching(/127.0.0.1(:\d+)?/),
version,
});
});
Expand Down
14 changes: 14 additions & 0 deletions packages/rpc-api/src/getClusterNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,29 @@ type ClusterNode = Readonly<{
gossip: string | null;
/** Node public key, as base-58 encoded string */
pubkey: Address;
/** WebSocket PubSub network address for the node */
pubsub: string | null;
/**
* JSON RPC network address for the node,
* or `null` if the JSON RPC service is not enabled
*/
rpc: string | null;
/** Server repair UDP network address for the node */
serveRepair: string | null;
/** The shred version the node has been configured to use */
shredVersion: number | null;
/** TPU network address for the node */
tpu: string | null;
/** Tpu UDP forwards network address for the node */
tpuForwards: string | null;
/** Tpu QUIC forwards network address for the node */
tpuForwardsQuic: string | null;
/** Tpu QUIC network address for the node */
tpuQuic: string | null;
/** Tpu UDP vote network address for the node */
tpuVote: string | null;
/** Tvu UDP network address for the node */
tvu: string | null;
/**
* The software version of the node,
* or `null` if the version information is not available
Expand Down

0 comments on commit 1c6e77f

Please sign in to comment.