rpcserver+itest: remove channel from backup when abandoning it

This commit is contained in:
Oliver Gugger
2020-03-04 10:57:06 +01:00
parent 4e0c276154
commit ab024b98ee
2 changed files with 23 additions and 0 deletions

View File

@@ -2254,6 +2254,10 @@ func (r *rpcServer) AbandonChannel(ctx context.Context,
return nil, err
}
// Finally, notify the backup listeners that the channel can be removed
// from any channel backups.
r.server.channelNotifier.NotifyClosedChannelEvent(*chanPoint)
return &lnrpc.AbandonChannelResponse{}, nil
}