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

Issue with openchannel_optional_addr_reverse Test Across Different IP Networks #42

Open
bitwalt opened this issue Dec 9, 2024 · 1 comment

Comments

@bitwalt
Copy link
Contributor

bitwalt commented Dec 9, 2024

Description:
We’re encountering an issue with the openchannel_optional_addr_reverse test when running Node1 and Node2 on separate IP networks. Below is the detailed context and observed behavior:

Setup

  • Nodes:
    • Both nodes are operating on regtest.
    • Node2 is deployed on a VPS with a public IP.
    • Node1 is located behind a NAT (e.g., within a local network).
    • Node2 acts as the channel initiator (equivalent to an LSP).

Steps to Reproduce

  1. Set up Node1 and Node2 on separate IP networks.
  2. Connect Node1 to Node2 (connection succeeds).
  3. Node2 initiates a channel opening to Node1 (API call succeeds, but the channel never opens).

Observed Behavior

  • The /openchannel API call returns success, but:
    • The channel remains in the "opening" state on Node2.
    • The channel never appears on Node1.
  • Node2 remains stuck in a "channel opening" state, restricting certain operations.
  • If Node1 disconnects, logs on Node2 show the openchannel operation failing due to a peer disconnect.

Expected Behavior

  • The channel should open successfully, even when Node1 and Node2 are in different network environments (e.g., NAT vs. public IP).

Additional Information

  • This issue is specific to IP network separation and does not occur when both nodes are on the same local network.
  • The problem appears to be tied to the openchannel_optional_addr_reverse test.
  • In current tests, nodes are configured on the same network, which doesn’t expose this issue.

Request

Introduce a new test case to cover scenarios where Node1 and Node2 operate on separate IP networks (e.g., one behind a NAT, one with a public IP).

@nicbus
Copy link
Contributor

nicbus commented Dec 10, 2024

Thanks for reporting this, we'll look into adding a test to reproduce this condition.

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

No branches or pull requests

2 participants