Merge pull request #1033 from stevenroose/close-offline

rpcserver: Clarify failure closing offline channel
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2018-04-06 12:20:30 -07:00
commit e30881a14c
4 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ type InvoiceDatabase interface {
// |
// | (Switch) (Switch) (Switch)
// | Alice <-- channel link --> Bob <-- channel link --> Carol
// |
// |
// | - - - - - - - - - - - - - TCP - - - - - - - - - - - - - - -
// |
// | (Peer) (Peer) (Peer)
+2 -2
View File
@@ -1284,8 +1284,8 @@ func (s *Switch) htlcForwarder() {
chanID := lnwire.NewChanIDFromOutPoint(req.ChanPoint)
link, ok := s.linkIndex[chanID]
if !ok {
req.Err <- errors.Errorf("channel with "+
"chan_id=%x not found", chanID[:])
req.Err <- errors.Errorf("no peer for channel with "+
"chan_id=%x", chanID[:])
continue
}