paymod: Add the final cltv delta to the getroute call

This commit is contained in:
Christian Decker
2020-05-21 23:24:30 +02:00
parent 6fbfe24e3e
commit b1e9f4923b
3 changed files with 13 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#define LIGHTNING_PLUGINS_LIBPLUGIN_PAY_H
#include "config.h"
#include <common/bolt11.h>
#include <plugins/libplugin.h>
#include <wire/gen_onion_wire.h>
@@ -129,6 +130,7 @@ struct payment {
* the above destination if we use rendez-vous routing of blinded
* paths to amend the route later in a mixin. */
struct node_id *getroute_destination;
u32 getroute_cltv;
struct createonion_request *createonion_request;
struct createonion_response *createonion_response;
@@ -164,6 +166,8 @@ struct payment {
void **modifier_data;
int current_modifier;
struct bolt11 *invoice;
struct payment_result *result;
};