multi: update "funding locked" comments

Replace a few un-caught instances of "funding locked" in some comments
with "channel_ready"
This commit is contained in:
Elle Mouton committed 2023-04-27 20:02:34 +02:00
1 parent 7854b73892
commit 9ea3f55694
6 files changed
+27 -27

No files matched your search

+2 -2
View File
@@ -722,7 +722,7 @@ func (l *channelLink) syncChanStates() error {
// If the remote party indicates that they think we haven't
// done any state updates yet, then we'll retransmit the
// funding locked message first. We do this, as at this point
// channel_ready message first. We do this, as at this point
// we can't be sure if they've really received the
// ChannelReady message.
if remoteChanSyncMsg.NextLocalCommitHeight == 1 &&
@@ -1091,7 +1091,7 @@ func (l *channelLink) htlcManager() {
// allow the switch to forward HTLCs in the outbound direction.
l.markReestablished()
// Now that we've received both funding locked and channel reestablish,
// Now that we've received both channel_ready and channel reestablish,
// we can go ahead and send the active channel notification. We'll also
// defer the inactive notification for when the link exits to ensure
// that every active notification is matched by an inactive one.
+1 -1
View File
@@ -115,7 +115,7 @@ func TestSwitchHasActiveLink(t *testing.T) {
t.Fatalf("link should not be active yet, still pending")
}
// Finally, simulate the link receiving funding locked by setting its
// Finally, simulate the link receiving channel_ready by setting its
// eligibility to true.
aliceChannelLink.eligible = true