htlcswitch: only re-send FundingLocked if the channel is fully confirmed
This commit is contained in:
1 file changed
+5
-3
+5
-3
@@ -405,10 +405,12 @@ func (l *channelLink) htlcManager() {
|
|||||||
// this, as at this point we can't be sure if they've
|
// this, as at this point we can't be sure if they've
|
||||||
// really received the FundingLocked message.
|
// really received the FundingLocked message.
|
||||||
if remoteChanSyncMsg.NextLocalCommitHeight == 1 &&
|
if remoteChanSyncMsg.NextLocalCommitHeight == 1 &&
|
||||||
localChanSyncMsg.NextLocalCommitHeight == 1 {
|
localChanSyncMsg.NextLocalCommitHeight == 1 &&
|
||||||
|
!l.channel.IsPending() {
|
||||||
|
|
||||||
log.Debugf("Resending fundingLocked message " +
|
log.Infof("ChannelPoint(%v): resending "+
|
||||||
"to peer")
|
"FundingLocked message to peer",
|
||||||
|
l.channel.ChannelPoint())
|
||||||
|
|
||||||
nextRevocation, err := l.channel.NextRevocationKey()
|
nextRevocation, err := l.channel.NextRevocationKey()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user