Skip to content

Commit

Permalink
triggerforceclose: test if cln doesn't like channel re-establish
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Jul 29, 2024
1 parent 3a0bb3a commit f8c6661
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cmd/chantools/triggerforceclose.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ func requestForceClose(peerHost, torProxy string, peerPubKey *btcec.PublicKey,
data := make([]byte, 34)
copy(data[:32], channelID[:])

log.Infof("Sending channel re-establish to peer to trigger force "+
"close of channel %v", channelPoint)

err = p.SendMessageLazy(true, &lnwire.ChannelReestablish{
ChanID: channelID,
})
if err != nil {
return err
}
//log.Infof("Sending channel re-establish to peer to trigger force "+
// "close of channel %v", channelPoint)
//
//err = p.SendMessageLazy(true, &lnwire.ChannelReestablish{
// ChanID: channelID,
//})
//if err != nil {
// return err
//}

log.Infof("Sending channel error message to peer to trigger force "+
"close of channel %v", channelPoint)
Expand Down

0 comments on commit f8c6661

Please sign in to comment.