rpcserver: Clarify failure closing offline channel

This commit is contained in:
Steven Roose
2018-04-05 18:52:35 +02:00
parent d6b9907cf5
commit 445924b7a9
4 changed files with 15 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ type InvoiceDatabase interface {
// |
// | (Switch) (Switch) (Switch)
// | Alice <-- channel link --> Bob <-- channel link --> Carol
// |
// |
// | - - - - - - - - - - - - - TCP - - - - - - - - - - - - - - -
// |
// | (Peer) (Peer) (Peer)

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
}