From 3253623785195f99bd1241a152dc5e95cf52d89b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 4 Oct 2024 09:01:53 +0930 Subject: [PATCH] gossmods_from_listpeerchannels: use correct type for cltv_delta. Doesn't matter now, but will with the next change where we want to pass a pointer. Signed-off-by: Rusty Russell --- common/gossmods_listpeerchannels.c | 4 ++-- common/gossmods_listpeerchannels.h | 6 +++--- plugins/askrene/askrene.c | 2 +- plugins/renepay/mods.c | 2 +- plugins/test/run-route-calc.c | 4 ++-- plugins/test/run-route-overlong.c | 4 ++-- plugins/topology.c | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/common/gossmods_listpeerchannels.c b/common/gossmods_listpeerchannels.c index 738642413..52b30c8bc 100644 --- a/common/gossmods_listpeerchannels.c +++ b/common/gossmods_listpeerchannels.c @@ -14,7 +14,7 @@ void gossmod_add_localchan(struct gossmap_localmods *mods, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf UNUSED, const jsmntok_t *chantok UNUSED, @@ -51,7 +51,7 @@ gossmods_from_listpeerchannels_(const tal_t *ctx, struct amount_msat sr_able, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf, const jsmntok_t *chantok, diff --git a/common/gossmods_listpeerchannels.h b/common/gossmods_listpeerchannels.h index a9847c882..37272a434 100644 --- a/common/gossmods_listpeerchannels.h +++ b/common/gossmods_listpeerchannels.h @@ -35,7 +35,7 @@ struct gossmap_localmods *gossmods_from_listpeerchannels_(const tal_t *ctx, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf_, const jsmntok_t *chantok, @@ -54,7 +54,7 @@ struct gossmap_localmods *gossmods_from_listpeerchannels_(const tal_t *ctx, struct amount_msat, \ struct amount_msat, \ u32, \ - u32, \ + u16, \ bool, \ const char *, \ const jsmntok_t *), \ @@ -70,7 +70,7 @@ void gossmod_add_localchan(struct gossmap_localmods *mods, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf UNUSED, const jsmntok_t *chantok UNUSED, diff --git a/plugins/askrene/askrene.c b/plugins/askrene/askrene.c index f98c78d82..2b34f1cf9 100644 --- a/plugins/askrene/askrene.c +++ b/plugins/askrene/askrene.c @@ -559,7 +559,7 @@ static void add_localchan(struct gossmap_localmods *mods, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf, const jsmntok_t *chantok, diff --git a/plugins/renepay/mods.c b/plugins/renepay/mods.c index 49b420f66..11dca910d 100644 --- a/plugins/renepay/mods.c +++ b/plugins/renepay/mods.c @@ -389,7 +389,7 @@ static void gossmod_cb(struct gossmap_localmods *mods, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf, const jsmntok_t *chantok, diff --git a/plugins/test/run-route-calc.c b/plugins/test/run-route-calc.c index da73c25a9..194984128 100644 --- a/plugins/test/run-route-calc.c +++ b/plugins/test/run-route-calc.c @@ -47,7 +47,7 @@ void gossmod_add_localchan(struct gossmap_localmods *mods UNNEEDED, struct amount_msat spendable UNNEEDED, struct amount_msat fee_base UNNEEDED, u32 fee_proportional UNNEEDED, - u32 cltv_delta UNNEEDED, + u16 cltv_delta UNNEEDED, bool enabled UNNEEDED, const char *buf UNUSED UNNEEDED, const jsmntok_t *chantok UNUSED UNNEEDED, @@ -68,7 +68,7 @@ struct gossmap_localmods *gossmods_from_listpeerchannels_(const tal_t *ctx UNNEE struct amount_msat spendable UNNEEDED, struct amount_msat fee_base UNNEEDED, u32 fee_proportional UNNEEDED, - u32 cltv_delta UNNEEDED, + u16 cltv_delta UNNEEDED, bool enabled UNNEEDED, const char *buf_ UNNEEDED, const jsmntok_t *chantok UNNEEDED, diff --git a/plugins/test/run-route-overlong.c b/plugins/test/run-route-overlong.c index 4a7d94b3f..ce9d7a3e1 100644 --- a/plugins/test/run-route-overlong.c +++ b/plugins/test/run-route-overlong.c @@ -44,7 +44,7 @@ void gossmod_add_localchan(struct gossmap_localmods *mods UNNEEDED, struct amount_msat spendable UNNEEDED, struct amount_msat fee_base UNNEEDED, u32 fee_proportional UNNEEDED, - u32 cltv_delta UNNEEDED, + u16 cltv_delta UNNEEDED, bool enabled UNNEEDED, const char *buf UNUSED UNNEEDED, const jsmntok_t *chantok UNUSED UNNEEDED, @@ -65,7 +65,7 @@ struct gossmap_localmods *gossmods_from_listpeerchannels_(const tal_t *ctx UNNEE struct amount_msat spendable UNNEEDED, struct amount_msat fee_base UNNEEDED, u32 fee_proportional UNNEEDED, - u32 cltv_delta UNNEEDED, + u16 cltv_delta UNNEEDED, bool enabled UNNEEDED, const char *buf_ UNNEEDED, const jsmntok_t *chantok UNNEEDED, diff --git a/plugins/topology.c b/plugins/topology.c index 972853e38..755fa84e3 100644 --- a/plugins/topology.c +++ b/plugins/topology.c @@ -367,7 +367,7 @@ static void gossmod_add_unknown_localchan(struct gossmap_localmods *mods, struct amount_msat spendable, struct amount_msat fee_base, u32 fee_proportional, - u32 cltv_delta, + u16 cltv_delta, bool enabled, const char *buf UNUSED, const jsmntok_t *chantok UNUSED,