File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,15 @@ func CreateRPCInvoice(invoice *invoices.Invoice,
187
187
AmtPaidSat : int64 (satAmtPaid ),
188
188
AmtPaidMsat : int64 (invoice .AmtPaid ),
189
189
AmtPaid : int64 (invoice .AmtPaid ),
190
- State : state ,
191
- Htlcs : rpcHtlcs ,
192
- Features : CreateRPCFeatures (invoice .Terms .Features ),
193
- IsKeysend : invoice .IsKeysend (),
194
- PaymentAddr : invoice .Terms .PaymentAddr [:],
195
- IsAmp : invoice .IsAMP (),
196
- IsBlinded : invoice .IsBlinded (),
190
+ // This will be set to SETTLED if at least one of the AMP Sets
191
+ // is settled (see below).
192
+ State : state ,
193
+ Htlcs : rpcHtlcs ,
194
+ Features : CreateRPCFeatures (invoice .Terms .Features ),
195
+ IsKeysend : invoice .IsKeysend (),
196
+ PaymentAddr : invoice .Terms .PaymentAddr [:],
197
+ IsAmp : invoice .IsAMP (),
198
+ IsBlinded : invoice .IsBlinded (),
197
199
}
198
200
199
201
rpcInvoice .AmpInvoiceState = make (map [string ]* lnrpc.AMPInvoiceState )
You can’t perform that action at this time.
0 commit comments