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

feat(asb): allow asb to register with mulitple rendezvous nodes #1417

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

delta1
Copy link
Collaborator

@delta1 delta1 commented Aug 1, 2023

implements #633

This PR updates the ASB to be able to register with multiple rendezvous nodes. A unit test is added that checks this behaviour. I also tested it manually overnight and it repeatedly reregistered with the specified nodes.

The config file option is left as rendezvous_point for backwards compatibility, but now uses the same deserialization as introduced in #1231 so that multiple addresses can be specified in a comma separated string, or as a toml array of strings.

@delta1 delta1 requested a review from binarybaron August 1, 2023 14:01
@delta1
Copy link
Collaborator Author

delta1 commented Aug 1, 2023

@binarybaron wanna give this a spin?

@binarybaron
Copy link
Collaborator

Will do 👍

@binarybaron
Copy link
Collaborator

LTGM! My swap provider is running this branch and successfully registers with two rendezvous points

One thing: We should update the documentation

@delta1
Copy link
Collaborator Author

delta1 commented Aug 3, 2023

awesome, good catch I’ll update the docs and squash these commits

@delta1
Copy link
Collaborator Author

delta1 commented Aug 4, 2023

  • updated doc
  • added a check for duplicates in the rendezvous_point on asb start: just dedup and log a warning
  • squashed commits

@binarybaron
Copy link
Collaborator

thanks for the work! @delta1

bors r+

@binarybaron
Copy link
Collaborator

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 4, 2023

Already running a review

@bors bors bot merged commit 9c811f8 into comit-network:master Aug 4, 2023
23 checks passed
@delta1 delta1 deleted the multi-rendezvous branch August 4, 2023 15:16
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