Skip to content
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

Introduce method to dynamically update relays #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

f321x
Copy link
Member

@f321x f321x commented Feb 14, 2025

Add a method that allows to dynamically update the list of used relays.
update_relays() can be called with a list of relay urls the manager should be connected to. The function will disconnect relays that are not in the list and connect to relays that are new in the list as well as update existing subscriptions to use the new relays too. Can be tested with the electrum/swap_dm_relays branch.

@f321x f321x marked this pull request as ready for review February 17, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants