mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 06:54:30 +01:00
gossipd/routing: make local functions static.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
e154f4a019
commit
745c7b223a
@@ -206,7 +206,8 @@ get_or_make_connection(struct routing_state *rstate,
|
||||
return nc;
|
||||
}
|
||||
|
||||
struct node_connection *half_add_connection(struct routing_state *rstate,
|
||||
static struct node_connection *half_add_connection(
|
||||
struct routing_state *rstate,
|
||||
const struct pubkey *from,
|
||||
const struct pubkey *to,
|
||||
const struct short_channel_id *schanid,
|
||||
@@ -241,7 +242,7 @@ static void clear_bfg(struct node_map *nodes)
|
||||
}
|
||||
}
|
||||
|
||||
s64 connection_fee(const struct node_connection *c, u64 msatoshi)
|
||||
static s64 connection_fee(const struct node_connection *c, u64 msatoshi)
|
||||
{
|
||||
s64 fee;
|
||||
|
||||
|
||||
@@ -99,20 +99,6 @@ struct routing_state *new_routing_state(const tal_t *ctx,
|
||||
const struct sha256_double *chain_hash,
|
||||
const struct pubkey *local_id);
|
||||
|
||||
/* msatoshi must be possible (< 21 million BTC), ie < 2^60.
|
||||
* If it returns more than msatoshi, it overflowed. */
|
||||
s64 connection_fee(const struct node_connection *c, u64 msatoshi);
|
||||
|
||||
/* Add a connection to the routing table, but do not mark it as usable
|
||||
* yet. Used by channel_announcements before the channel_update comes
|
||||
* in. */
|
||||
|
||||
struct node_connection *half_add_connection(struct routing_state *rstate,
|
||||
const struct pubkey *from,
|
||||
const struct pubkey *to,
|
||||
const struct short_channel_id *schanid,
|
||||
const u16 flags);
|
||||
|
||||
/* Given a short_channel_id, retrieve the matching connection, or NULL if it is
|
||||
* unknown. */
|
||||
struct node_connection *get_connection_by_scid(const struct routing_state *rstate,
|
||||
|
||||
Reference in New Issue
Block a user