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

Function sphinx_path_set_rendezvous

common/sphinx.c:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool sphinx_path_set_rendezvous(struct sphinx_path *sp,
82 const struct node_id *rendezvous_id)
83{
84 if (rendezvous_id == NULL) {
85 sp->rendezvous_id = tal_free(sp->rendezvous_id);
86 return true;
87 } else {
88 sp->rendezvous_id = tal_free(sp->rendezvous_id);
89 sp->rendezvous_id = tal(sp, struct pubkey);
90 return pubkey_from_node_id(sp->rendezvous_id, rendezvous_id);
91 }
92}
93
94static size_t sphinx_hop_size(const struct sphinx_hop *hop)
95{

Callers 1

do_generateFunction · 0.85

Calls 2

tal_freeFunction · 0.85
pubkey_from_node_idFunction · 0.70

Tested by

no test coverage detected