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

Function init_half_chan

gossipd/routing.c:554–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554static void init_half_chan(struct routing_state *rstate,
555 struct chan *chan,
556 int channel_idx)
557{
558 struct half_chan *c = &chan->half[channel_idx];
559
560 broadcastable_init(&c->bcast);
561 broadcastable_init(&c->rgraph);
562 c->tokens = TOKEN_MAX;
563}
564
565static void bad_gossip_order(const u8 *msg,
566 const struct peer *peer,

Callers 1

new_chanFunction · 0.85

Calls 1

broadcastable_initFunction · 0.85

Tested by

no test coverage detected