rpc: don't return an error if no payments exist for ListPayments

This commit is contained in:
Olaoluwa Osuntokun 2017-02-04 16:52:25 -08:00
parent a393362eb8
commit 71bb430836
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -1648,7 +1648,7 @@ func (r *rpcServer) ListPayments(context.Context,
rpcsLog.Debugf("[ListPayments]")
payments, err := r.server.chanDB.FetchAllPayments()
if err != nil {
if err != nil && err != channeldb.ErrNoPaymentsCreated {
return nil, err
}