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

Function new_per_peer_state

common/per_peer_state.c:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17struct per_peer_state *new_per_peer_state(const tal_t *ctx)
18{
19 struct per_peer_state *pps = tal(ctx, struct per_peer_state);
20
21 pps->peer_fd = -1;
22 tal_add_destructor(pps, destroy_per_peer_state);
23 return pps;
24}
25
26void per_peer_state_set_fd(struct per_peer_state *pps, int peer_fd)
27{

Callers 4

mainFunction · 0.85
init_channelFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected