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

Function new_per_peer_state

common/per_peer_state.c:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected