Skip to content

Commit 61341df

Browse files
authored
Merge pull request #1141 from TheBlueMatt/2021-10-payment-id-on-partial-failure
Rewrite InvoicePayer retry to correctly handle MPP partial failures
2 parents c53048a + 199d258 commit 61341df

File tree

5 files changed

+339
-95
lines changed

5 files changed

+339
-95
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ fn check_payment_err(send_err: PaymentSendFailure) {
271271
PaymentSendFailure::AllFailedRetrySafe(per_path_results) => {
272272
for api_err in per_path_results { check_api_err(api_err); }
273273
},
274-
PaymentSendFailure::PartialFailure(per_path_results) => {
275-
for res in per_path_results { if let Err(api_err) = res { check_api_err(api_err); } }
274+
PaymentSendFailure::PartialFailure { results, .. } => {
275+
for res in results { if let Err(api_err) = res { check_api_err(api_err); } }
276276
},
277277
}
278278
}

0 commit comments

Comments
 (0)