mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
rpc: don't return an error if no payments exist for ListPayments
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user