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

Function dest_count

plugins/spender/multifundchannel.c:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28size_t dest_count(const struct multifundchannel_command *mfc,
29 enum channel_protocol protocol)
30{
31 size_t count = 0, i;
32 for (i = 0; i < tal_count(mfc->destinations); i++) {
33 if (mfc->destinations[i].protocol == protocol)
34 count++;
35 }
36 return count;
37}
38
39static void fail_destination(struct multifundchannel_destination *dest)
40{

Callers 8

after_signpsbtFunction · 0.85
perform_fundpsbtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected