paymod: Compute fee and CLTV delta limits for a payment

So far we got away with not caring about these but since we're implementing
modifiers that impact these limits, we better keep track of them.
This commit is contained in:
Christian Decker
2020-06-03 15:59:12 +02:00
parent e71bdf9ed8
commit 4648d2867f
4 changed files with 107 additions and 24 deletions

View File

@@ -201,7 +201,13 @@ struct payment {
struct timeabs start_time, end_time;
struct timeabs deadline;
struct amount_msat extra_budget;
/* Maximum remaining fees we're willing to pay to complete this
* (sub-)payment. */
struct amount_msat fee_budget;
/* Maximum end-to-end CLTV delta we're willing to wait for this
* (sub-)payment to complete. */
u32 cltv_budget;
struct short_channel_id *exclusions;