mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
paymod Collect the final failure when aggregating the tree results
We're lucky that we can distinguish the severity of the failure based on the failcode, so we bubble up the one with the maximum failcode, and let callers inspect details if they need more information.
This commit is contained in:
@@ -137,6 +137,11 @@ struct payment_tree_result {
|
||||
struct preimage *preimage;
|
||||
|
||||
u32 attempts;
|
||||
|
||||
/* Pointer to the failure that caused the payment to fail. We just
|
||||
* take the one with the highest failcode, since that happen to match
|
||||
* the severity of the error. */
|
||||
struct payment_result *failure;
|
||||
};
|
||||
|
||||
struct payment {
|
||||
|
||||
Reference in New Issue
Block a user