| 146 | } |
| 147 | |
| 148 | void 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 | |
| 165 | static void destroy_inflight(struct channel_inflight *inflight) |
| 166 | { |
no test coverage detected