-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add dedicated websocket cli parameter #337
Conversation
c614695
to
0e21948
Compare
0e21948
to
a3c5238
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #337 +/- ##
==========================================
- Coverage 60.83% 60.80% -0.03%
==========================================
Files 226 226
Lines 12333 12339 +6
==========================================
Hits 7503 7503
- Misses 4830 4836 +6
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the initial idea is more to make it straight and not flexible, simply subnet_http_jsonrpc_endpoint
and subnet_ws_jsonrpc_endpoint
given explicitly, without any attempt to infer anything
Here the current patch is nice because pretty backward compatible with what we have now, but the concern is that's the type of weird logic that are not nice when they adds up I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should stop inferring things automatically, like @hadjiszs suggests.
Also, wrt naming: JSON-RPC is the protocol and http/ws are the available transports. With that in mind I think subnet_websocket_endpoint
is a poor name. I suggest we rename the options to subnet_jsonrpc_http
and subnet_jsonrpc_ws
and make both required (no Option<String>
).
I am a bit concerned about our naming of env vars; I think they should be consistently prefixed with TOPOS_
, but that's something for a different PR. :)
Right I am aware of that. I didn't want to break things with the tools team setup (to rename the subnet_jsonrpc_endpoint) and add topos to the env variable. Lets break everything then. @dvdplm In 90% of the cases http and websocket endpoints are related and easily deducible. If we start requiring everything we will have very soon 10 parameters required to run our node |
79c2b57
to
e00f852
Compare
Ok, maybe you're right. We'll discuss it elsewhere. :) |
Description
Add sequencer command line argument
--subnet-websocket-endpoint
to explicitly provided subnet jsonrpc websocket endpoint. Usable when subnet endpoint could not be derived fromhttp/https
endpoint in a standard way (what is done by default), e.g. when custom cloud websocket endpoints are used.Fixes TP-749
PR Checklist: