libplugin: conceptually separate "total due" from "amount we're paying".

At the moment they're both the same, but we're about to change that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-03-19 14:59:59 +10:30
parent 9b83b8b967
commit bd5d2d1673
4 changed files with 62 additions and 45 deletions

View File

@@ -195,6 +195,7 @@ struct payment {
/* Blinded path (for bolt12) */
struct blinded_path *blindedpath;
struct blinded_payinfo *blindedpay;
struct amount_msat blindedouramount;
struct amount_msat blindedfinalamount;
u32 blindedfinalcltv;
@@ -211,7 +212,9 @@ struct payment {
struct createonion_response *createonion_response;
/* Target amount to be delivered at the destination */
struct amount_msat amount;
struct amount_msat final_amount;
/* Amount we are trying to deliver with this payment (usually the same) */
struct amount_msat our_amount;
/* tal_arr of route_hops we decoded from the `getroute` call. Exposed
* here so it can be amended by mixins. */