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

Function peer_from_json

lightningd/peer_control.c:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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