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

Function sphinx_path_payloads_size

common/sphinx.c:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

json_createonionFunction · 0.85
json_sendonionmessageFunction · 0.85
sphinx_prefillFunction · 0.85
create_onionpacketFunction · 0.85
sphinx_compressFunction · 0.85

Calls 1

sphinx_hop_sizeFunction · 0.85

Tested by

no test coverage detected