Files
palladum-lightning/plugins/askrene/child/entry.h
Rusty Russell 0f575ac85a askrene: remove non child-friendly fields from struct route_query.
Notably no access to the struct command and struct plugin.

Note: we actually *do* mess with askrene->reserves, but the previous code
used cmd to get to it.  Now we need to include a non-const pointer in
struct route_query.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-02-19 17:04:35 +10:30

27 lines
841 B
C

#ifndef LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H
#define LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H
#include "config.h"
#include <ccan/short_types/short_types.h>
#include <ccan/time/time.h>
#include <common/amount.h>
#include <stdbool.h>
struct route_query;
struct gossmap_node;
struct json_filter;
/* Entry point to the child process. */
int fork_router_child(struct route_query *rq,
bool single_path,
struct timemono deadline,
const struct gossmap_node *srcnode,
const struct gossmap_node *dstnode,
struct amount_msat amount, struct amount_msat maxfee,
u32 finalcltv, u32 maxdelay, size_t maxparts,
bool include_fees,
const char *cmd_id,
struct json_filter *cmd_filter,
int *log_fd,
int *child_pid);
#endif /* LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H */