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

Function dest_count

plugins/spender/multifundchannel.c:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

after_signpsbtFunction · 0.85
perform_fundpsbtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected