mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-28 06:58:51 +01:00
peer: ensure latest version of htlcswitch.Peer interface is implemented
This commit is contained in:
@@ -761,7 +761,8 @@ func (r *rpcServer) GetInfo(ctx context.Context,
|
||||
|
||||
pendingChannels, err := r.server.fundingMgr.NumPendingChannels()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get number of pending channels: %v", err)
|
||||
return nil, fmt.Errorf("unable to get number of pending "+
|
||||
"channels: %v", err)
|
||||
}
|
||||
|
||||
idPub := r.server.identityPriv.PubKey().SerializeCompressed()
|
||||
@@ -1135,6 +1136,8 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
||||
errChan := make(chan error, 1)
|
||||
payChan := make(chan *lnrpc.SendRequest)
|
||||
|
||||
// TODO(roasbeef): check payment filter to see if already used?
|
||||
|
||||
// In order to limit the level of concurrency and prevent a client from
|
||||
// attempting to OOM the server, we'll set up a semaphore to create an
|
||||
// upper ceiling on the number of outstanding payments.
|
||||
|
||||
Reference in New Issue
Block a user