Merge pull request #1033 from stevenroose/close-offline

rpcserver: Clarify failure closing offline channel
This commit is contained in:
Olaoluwa Osuntokun
2018-04-06 12:20:30 -07:00
committed by GitHub
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
}