File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ func (l *LndChallenger) Start() error {
102
102
// updates for new invoices and/or newly settled invoices.
103
103
l .invoicesMtx .Lock ()
104
104
for _ , invoice := range invoiceResp .Invoices {
105
+ // Some invoices like AMP invoices may not have a payment hash
106
+ // populated.
107
+ if invoice .RHash == nil {
108
+ continue
109
+ }
110
+
105
111
if invoice .AddIndex > addIndex {
106
112
addIndex = invoice .AddIndex
107
113
}
@@ -207,6 +213,12 @@ func (l *LndChallenger) readInvoiceStream(
207
213
default :
208
214
}
209
215
216
+ // Some invoices like AMP invoices may not have a payment hash
217
+ // populated.
218
+ if invoice .RHash == nil {
219
+ continue
220
+ }
221
+
210
222
hash , err := lntypes .MakeHash (invoice .RHash )
211
223
if err != nil {
212
224
log .Errorf ("Error parsing invoice hash: %v" , err )
You can’t perform that action at this time.
0 commit comments