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

Function sphinx_path_payloads_size

common/sphinx.c:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102size_t sphinx_path_payloads_size(const struct sphinx_path *path)
103{
104 size_t size = 0;
105 for (size_t i=0; i<tal_count(path->hops); i++)
106 size += sphinx_hop_size(&path->hops[i]);
107 return size;
108}
109
110bool sphinx_add_hop_has_length(struct sphinx_path *path, const struct pubkey *pubkey,
111 const u8 *payload TAKES)

Callers 5

json_createonionFunction · 0.85
sphinx_prefillFunction · 0.85
create_onionpacketFunction · 0.85
sphinx_compressFunction · 0.85
inject_onionmessage_Function · 0.85

Calls 1

sphinx_hop_sizeFunction · 0.85

Tested by

no test coverage detected