Implement block-based grace period for channel announcements #305
Labels
discovery
Peer and route discovery / whisper protocol related issues/PRs
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
Milestone
Issue
Atm, as soon as a channel has reached the specified number of confirmations, then we immediately announce it to the network. Instead of the immediate announcement, we should be following the specification's prescription to wait until the funding transaction has reached at least 6 confirmations.
Steps to Completion
Fixing this will require decoupling the
waitForFundingConfrimation
method from the announcement of the channels themselves. However, by announcement we only mean broadcasting the series of channel announcement messages to the greater network.As soon as the
FundingLocked
message is sent, we should still be immediately adding the new channel to our internal channel graph so it can become visible to theChannelRouter
during path finding.The text was updated successfully, but these errors were encountered: