diff --git a/rpcserver.go b/rpcserver.go index 44985de147..d04d5fa622 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -8056,7 +8056,13 @@ func (r *rpcServer) AddInvoice(ctx context.Context, return nil, fmt.Errorf("error validating invoice amount: %w", err) } + + // We'll forward the invoice request to lnd, where we can only set one + // of the two values. Since we've calculated the amount in mSat (but the + // user might've set the satoshi value initially), we need to reset the + // value field. iReq.ValueMsat = int64(invoiceAmtMsat) + iReq.Value = 0 // The last step is to create a hop hint that includes the fake SCID of // the quote, alongside the channel's routing policy. We need to choose