File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -8128,9 +8128,19 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
81288128 var expensiveQuote * rfqrpc.PeerAcceptedBuyQuote
81298129 if ! existingQuotes {
81308130 expensiveQuote = acquiredQuotes [0 ].quote
8131+ } else {
8132+ mgr := r .cfg .AuxInvoiceManager
8133+ buyQuote , err := mgr .GetBuyQuoteFromRouteHints (
8134+ iReq , specifier ,
8135+ )
8136+ if err != nil {
8137+ return nil , fmt .Errorf ("failed to find matching buy " +
8138+ "quote in accepted quotes: %w" , err )
8139+ }
8140+
8141+ expensiveQuote = marshalPeerAcceptedBuyQuote (* buyQuote )
81318142 }
81328143
8133- // replace with above
81348144 // Now that we have the accepted quote, we know the amount in (milli)
81358145 // Satoshi that we need to pay. We can now update the invoice with this
81368146 // amount.
You can’t perform that action at this time.
0 commit comments