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

Function get_channel_basepoints

lightningd/channel.c:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void get_channel_basepoints(struct lightningd *ld,
149 const struct node_id *peer_id,
150 const u64 dbid,
151 struct basepoints *local_basepoints,
152 struct pubkey *local_funding_pubkey)
153{
154 const u8 *msg;
155
156 assert(dbid != 0);
157 msg = towire_hsmd_get_channel_basepoints(NULL, peer_id, dbid);
158 msg = hsm_sync_req(tmpctx, ld, take(msg));
159 if (!fromwire_hsmd_get_channel_basepoints_reply(msg, local_basepoints,
160 local_funding_pubkey))
161 fatal("HSM gave bad hsm_get_channel_basepoints_reply %s",
162 tal_hex(msg, msg));
163}
164
165static void destroy_inflight(struct channel_inflight *inflight)
166{

Callers 4

new_unsaved_channelFunction · 0.70
new_uncommitted_channelFunction · 0.70
stub_chanFunction · 0.70
json_recoverchannelFunction · 0.70

Calls 5

tal_hexFunction · 0.85
hsm_sync_reqFunction · 0.70
fatalFunction · 0.70

Tested by

no test coverage detected