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

Function peer_from_json

lightningd/peer_control.c:198–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198struct peer *peer_from_json(struct lightningd *ld,
199 const char *buffer,
200 const jsmntok_t *peeridtok)
201{
202 struct node_id peerid;
203
204 if (!json_to_node_id(buffer, peeridtok, &peerid))
205 return NULL;
206
207 return peer_by_id(ld, &peerid);
208}
209
210u8 *p2wpkh_for_keyidx(const tal_t *ctx, struct lightningd *ld, u64 keyidx)
211{

Callers 2

param_channel_or_allFunction · 0.85
param_channel_or_peerFunction · 0.85

Calls 2

peer_by_idFunction · 0.85
json_to_node_idFunction · 0.50

Tested by

no test coverage detected