We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9fe051 commit 499d2dfCopy full SHA for 499d2df
lnrpc/routerrpc/router_backend.go
@@ -985,6 +985,14 @@ func (r *RouterBackend) extractIntentFromSendRequest(
985
return nil, err
986
}
987
988
+ // An invoice must include either a payment address or
989
+ // blinded paths.
990
+ if payReq.PaymentAddr.IsNone() &&
991
+ len(payReq.BlindedPaymentPaths) == 0 {
992
+ return nil, errors.New("payment request must contain " +
993
+ "either a payment address or blinded paths")
994
+ }
995
+
996
// If the amount was not included in the invoice, then we let
997
// the payer specify the amount of satoshis they wish to send.
998
// We override the amount to pay with the amount provided from
0 commit comments