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

Function sphinx_path_set_rendezvous

common/sphinx.c:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

do_generateFunction · 0.85

Calls 2

tal_freeFunction · 0.85
pubkey_from_node_idFunction · 0.70

Tested by

no test coverage detected