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

Function peer_from_json

lightningd/peer_control.c:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192struct peer *peer_from_json(struct lightningd *ld,
193 const char *buffer,
194 const jsmntok_t *peeridtok)
195{
196 struct node_id peerid;
197
198 if (!json_to_node_id(buffer, peeridtok, &peerid))
199 return NULL;
200
201 return peer_by_id(ld, &peerid);
202}
203
204u8 *p2wpkh_for_keyidx(const tal_t *ctx, struct lightningd *ld, u64 keyidx)
205{

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