MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_channel_owner

Function get_channel_owner

gossipd/routing.c:1522–1537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520}
1521
1522static const struct node_id *get_channel_owner(struct routing_state *rstate,
1523 const struct short_channel_id *scid,
1524 int direction)
1525{
1526 struct chan *chan = get_channel(rstate, scid);
1527 struct unupdated_channel *uc;
1528
1529 if (chan)
1530 return &chan->nodes[direction]->id;
1531
1532 /* Might be unupdated channel */
1533 uc = get_unupdated_channel(rstate, scid);
1534 if (uc)
1535 return &uc->id[direction];
1536 return NULL;
1537}
1538
1539u8 *handle_channel_update(struct routing_state *rstate, const u8 *update TAKES,
1540 struct peer *peer,

Callers 1

handle_channel_updateFunction · 0.85

Calls 2

get_channelFunction · 0.85
get_unupdated_channelFunction · 0.85

Tested by

no test coverage detected