cleanup: Use u32 as the type of max_hops in gossipd

This commit is contained in:
trueptolemy
2019-09-24 11:33:59 +08:00
committed by Christian Decker
parent 8103e48f8c
commit d8dce6e61f
5 changed files with 7 additions and 7 deletions

View File

@@ -1122,7 +1122,7 @@ find_shorter_route(const tal_t *ctx, struct routing_state *rstate,
struct node *src, struct node *dst,
const struct node *me,
struct amount_msat msat,
size_t max_hops,
u32 max_hops,
double fuzz, const struct siphash_seed *base_seed,
struct chan **long_route,
struct amount_msat *fee)
@@ -1245,7 +1245,7 @@ find_route(const tal_t *ctx, struct routing_state *rstate,
struct amount_msat msat,
double riskfactor,
double fuzz, const struct siphash_seed *base_seed,
size_t max_hops,
u32 max_hops,
struct amount_msat *fee)
{
struct node *src, *dst;
@@ -2494,7 +2494,7 @@ struct route_hop *get_route(const tal_t *ctx, struct routing_state *rstate,
u32 final_cltv,
double fuzz, u64 seed,
struct exclude_entry **excluded,
size_t max_hops)
u32 max_hops)
{
struct chan **route;
struct amount_msat total_amount;