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

Function new_peer_fd

lightningd/peer_fd.c:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12struct peer_fd *new_peer_fd(const tal_t *ctx, int peer_fdnum)
13{
14 struct peer_fd *peer_fd = tal(ctx, struct peer_fd);
15
16 peer_fd->fd = peer_fdnum;
17 tal_add_destructor(peer_fd, destroy_peer_fd);
18 return peer_fd;
19}
20
21struct peer_fd *new_peer_fd_arr(const tal_t *ctx, const int *fd)
22{

Callers 5

openchannel_initFunction · 0.70
json_queryratesFunction · 0.70
sockpairFunction · 0.70
new_peer_fd_arrFunction · 0.70
fundchannel_startFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected