mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
utils: remove tal_tmpctx altogether, use global.
In particular, we now only free tmpctx at the end of main(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -230,7 +230,7 @@ void set_connection_values(struct chan *chan,
|
||||
struct node *get_node(struct routing_state *rstate, const struct pubkey *id);
|
||||
|
||||
/* Compute a route to a destination, for a given amount and riskfactor. */
|
||||
struct route_hop *get_route(tal_t *ctx, struct routing_state *rstate,
|
||||
struct route_hop *get_route(const tal_t *ctx, struct routing_state *rstate,
|
||||
const struct pubkey *source,
|
||||
const struct pubkey *destination,
|
||||
const u32 msatoshi, double riskfactor,
|
||||
|
||||
Reference in New Issue
Block a user