Skip to content

Connect to channel peers before creating a channel in tests. #971

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

Conversation

valentinewallace
Copy link
Contributor

If we don't do this, then peers are never added to per_peer_state in ChannelManager,
causing list_usable_channels to bogusly return our channel peer's features as empty.

This is what was causing my keysend test to fail due to "unsupported" var_len_onion feature.

If we don't do this, then peers are never added to per_peer_state in ChannelManager,
causing list_usable_channels to bogusly return our channel peer's features as empty.
@valentinewallace valentinewallace marked this pull request as draft June 25, 2021 20:07
@valentinewallace
Copy link
Contributor Author

Oops should've ran the test suite first. Converting to draft.

@TheBlueMatt
Copy link
Collaborator

Maybe do the connection on init instead of when a channel is created? Could probably just connect all peers to each other.

@jkczyz
Copy link
Contributor

jkczyz commented Jul 30, 2021

Looks like I'll need this for #1019. @valentinewallace if you're busy with other tasks, I can take this on and fix the test failures.

@TheBlueMatt
Copy link
Collaborator

Superseded by #1024.

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.

3 participants