Skip to content

Getting network nodes #4781

Answered by achamayou
lynshi asked this question in Q&A
Dec 21, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

@lynshi from a quick look at the logic, all published_interfaces are matched (https://github.com/microsoft/CCF/blob/main/src/node/rpc/node_frontend.h#L925), and there should not be any duplication, since there is a single foreach pass.

To be perfectly honest, I am not convinced of the value of this functionality, because:

  1. This will only query nodes that are in the current KV. Now that node state cleanup is implemented, that should never be more than a few entries.
  2. There are many good ways to filter JSON data, on the CLI (jq) or in libraries on the client side. Doing this on the server side is only marginally more convenient, and introduces extra TCB and user input parsing.

What do you t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lynshi
Comment options

Answer selected by lynshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants