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

Re-send FundingLocked in ChannelLink upon re-connect if at state zero #303

Closed
3 tasks
Roasbeef opened this issue Aug 30, 2017 · 3 comments
Closed
3 tasks
Labels
commitments Commitment transactions containing the state of the channel funding Related to the opening of new channels with funding transactions on the blockchain intermediate Issues suitable for developers moderately familiar with the codebase and LN p2p Code related to the peer-to-peer behaviour

Comments

@Roasbeef
Copy link
Member

Roasbeef commented Aug 30, 2017

Issue

The current specification draft describes the process of re-synchronizing channel state upon reconnection. As transports can be unreliable, we don't have a guarantee that the remote party actually received the last update we sent before the connection was closed. As a result, upon reconnection we'll attempt to retransmit the state necessary to reconcile any possible deviations in our state.

PR #231 implements the bulk of the retransmission logic but leaves one component un-implemented:

If next_local_commitment_number is 1 in both the channel_reestablish it sent and received, then the node MUST retransmit funding_locked, otherwise it MUST NOT. On reconnection, a node MUST ignore a redundant funding_locked if it receives one.

Steps to Completion

@Roasbeef Roasbeef added commitments Commitment transactions containing the state of the channel intermediate Issues suitable for developers moderately familiar with the codebase and LN p2p Code related to the peer-to-peer behaviour state machine labels Aug 30, 2017
@Roasbeef Roasbeef added this to the v0.3.1-alpha milestone Aug 30, 2017
@Roasbeef Roasbeef added the funding Related to the opening of new channels with funding transactions on the blockchain label Aug 30, 2017
@halseth
Copy link
Contributor

halseth commented Sep 4, 2017

Taking a look at this one :)

@halseth
Copy link
Contributor

halseth commented Oct 3, 2017

Can be closed re #328 :)

@Roasbeef
Copy link
Member Author

Roasbeef commented Oct 3, 2017

Closing.

@Roasbeef Roasbeef closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commitments Commitment transactions containing the state of the channel funding Related to the opening of new channels with funding transactions on the blockchain intermediate Issues suitable for developers moderately familiar with the codebase and LN p2p Code related to the peer-to-peer behaviour
Projects
None yet
Development

No branches or pull requests

2 participants