-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove connection manager #4730
Comments
Hmm I wouldn't remove the connection manager. I see it as an important component of Raiden. Lightning also has the same thing and it's called autopilot: https://github.com/lightningnetwork/lnd/tree/master/autopilot It's one of their most used features. I understand it's buggy, but wouldn't fixing the bugs be what we want? Instead of just removing it? |
Yes, so I agree that the idea behind the connection manager is really nice however the current implementation for a user perspective is not really helpful. There is no guarantee that the channels opened by the connection manager belong to nodes that are first online/available and secondly have some kind of capacity to be usable. As a user starting Raiden for the first time, I would expect after using the connection manager to actually be able to use the open channels so that I can send to other nodes in the network. Currently, there is absolutely no guarantee that I will be able to do this because all the nodes might be offline. I am also towards having a proper mechanism that can help users connect to the network. Currently finding online nodes is really hard for a user that wants just test raiden in any network. |
Open an issue for that and we can improve it.
Should be handled by the above issue, of opening nodes only with online partners. Relevant old issue: #576 |
Ok, will do so. |
I think we can provide similar UX in a simpler way. |
A simple script is not enough. It needs to be informed enough to be able to implement various strategies to achieve a good connection with the network. Best place to be able to do that is as a module of the raiden client. Again check at what lightning does and what strategies they implement. Here is a nice github issue where you can get hints on their current autopilot default strategies and how different strategies can be implemented there: lightningnetwork/lnd#677 |
I think the obvious source for this information is the PFS, and that could be queried by a script. |
I think having a bad UX in a component shouldn't lead to it's removal but rather more improvement. TBQH, i am all for simplification but against removing the connection manager. We can convert this issue to "refactor". |
Maybe raiden-network/raiden-services#684 is the way to go. |
We have the decision to remove the connection manager from the python code base. The plan is to add a simple replacement in a higher layer (e.g. web UI) relying on the partner suggestion endpoint of the PFS. Can we share code for this between the light client and the python client's web UI? @manuelwedler |
We don't share any code between them yet, so we would have to introduce some shared library. But if it is just querying the suggestions from the PFS and opening a channel with them, I don't see a necessity for it. For more complicated logic it might make sense. |
@karlb I like your suggestion :) Could you create an issue within the WebUI repo (https://github.com/raiden-network/webui/issues/new/choose) roughly describing your proposal. Thanks :) |
WebUI issue is here: raiden-network/webui#547 See also https://hackmd.io/qVuEq6YTR-SZ3n9otJyEuw for additional context on the CM removal decision. |
Great, thanks :) |
Planned changes to the API in https://raiden-network.readthedocs.io/en/latest/rest_api.html#connection-management:
|
The connection manager is removed from the raiden client and replaced by a simplified version in the WebUI (raiden-network/webui#547). Closes #4730. More documentation updates are still needed, but the duplication between https://docs.raiden.network/ and https://raiden-network.readthedocs.io should be cleared up, first.
The connection manager in theory is a nice feature, but currently leads to UX problems (@kelsos can you chime in here) and also is the source of bugs:
We should think about removing it and supporting the use cases in other ways.
The text was updated successfully, but these errors were encountered: