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

Function find_channel_by_alias

lightningd/channel.c:698–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698struct channel *find_channel_by_alias(const struct peer *peer,
699 const struct short_channel_id *alias,
700 enum side side)
701{
702 struct channel *c;
703 list_for_each(&peer->channels, c, list) {
704 if (c->alias[side] && short_channel_id_eq(c->alias[side], alias))
705 return c;
706 }
707 return NULL;
708}
709
710void channel_set_last_tx(struct channel *channel,
711 struct bitcoin_tx *tx,

Callers 1

routehint_candidatesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected