@@ -331,6 +331,17 @@ const char *fmt_flow_full(const tal_t *ctx,
331331 return str ;
332332}
333333
334+ struct getroutes_info {
335+ struct command * cmd ;
336+ struct node_id * source , * dest ;
337+ struct amount_msat * amount , * maxfee ;
338+ u32 * finalcltv , * maxdelay ;
339+ const char * * layers ;
340+ struct additional_cost_htable * additional_costs ;
341+ /* Non-NULL if we are told to use "auto.localchans" */
342+ struct layer * local_layer ;
343+ };
344+
334345/* Returns an error message, or sets *routes */
335346static const char * get_routes (const tal_t * ctx ,
336347 struct command * cmd ,
@@ -527,17 +538,6 @@ void get_constraints(const struct route_query *rq,
527538 reserve_sub (rq -> reserved , & scidd , max );
528539}
529540
530- struct getroutes_info {
531- struct command * cmd ;
532- struct node_id * source , * dest ;
533- struct amount_msat * amount , * maxfee ;
534- u32 * finalcltv , * maxdelay ;
535- const char * * layers ;
536- struct additional_cost_htable * additional_costs ;
537- /* Non-NULL if we are told to use "auto.localchans" */
538- struct layer * local_layer ;
539- };
540-
541541static struct command_result * do_getroutes (struct command * cmd ,
542542 struct gossmap_localmods * localmods ,
543543 const struct getroutes_info * info )
0 commit comments