mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
gossipd: get_channel() wrapper for channel lookup.
We rename the current routing.c get_channel to find_channel. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
042d5d13f5
commit
affc1be4d6
@@ -124,6 +124,13 @@ struct routing_state {
|
||||
UINTMAP(struct routing_channel*) channels;
|
||||
};
|
||||
|
||||
static inline struct routing_channel *
|
||||
get_channel(const struct routing_state *rstate,
|
||||
const struct short_channel_id *scid)
|
||||
{
|
||||
return uintmap_get(&rstate->channels, short_channel_id_to_uint(scid));
|
||||
}
|
||||
|
||||
struct route_hop {
|
||||
struct short_channel_id channel_id;
|
||||
struct pubkey nodeid;
|
||||
|
||||
Reference in New Issue
Block a user