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

Lookup channels by node id instead of endpoints in test code #3897

Merged

Conversation

pwojcikdev
Copy link
Contributor

@pwojcikdev pwojcikdev commented Aug 21, 2022

Right now we assume we can lookup channels by their associated endpoint, however this is only because we always establish two channels per peer, one inbound and one outbound. This PR is preparation for future changes introducing bidirectional channels where one endpoint uses a random ephemeral port.

There are also a few smaller fixes that I noticed when going through code that didn't seem worthwhile to have their own PR.

TODO: It is probably a good idea to replace looking up channels by node id everywhere, but a lot of those usages are left in legacy UDP code, so this needs to wait after that part is removed.

@pwojcikdev pwojcikdev force-pushed the prs/find-channel-use-node-id branch from a862b51 to 4c348cf Compare August 21, 2022 18:54
@pwojcikdev pwojcikdev force-pushed the prs/find-channel-use-node-id branch from 4c348cf to 4c490f1 Compare August 28, 2022 11:14
clemahieu
clemahieu previously approved these changes Sep 17, 2022
@clemahieu clemahieu force-pushed the prs/find-channel-use-node-id branch from 4c490f1 to 5be100c Compare October 12, 2022 12:48
@pwojcikdev pwojcikdev merged commit 92b9943 into nanocurrency:develop Oct 12, 2022
@pwojcikdev pwojcikdev deleted the prs/find-channel-use-node-id branch October 12, 2022 15:06
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