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

Function tlv_overhead

gossipd/queries.c:369–372  ·  view source on GitHub ↗

FIXME: This assumes that the tlv type encodes into 1 byte! */

Source from the content-addressed store, hash-verified

367
368/* FIXME: This assumes that the tlv type encodes into 1 byte! */
369static size_t tlv_overhead(size_t num_entries, size_t size)
370{
371 return 1 + bigsize_len(num_entries * size);
372}
373
374/* How many entries can I fit in a reply? */
375static size_t max_entries(enum query_option_flags query_option_flags)

Callers 1

max_entriesFunction · 0.85

Calls 1

bigsize_lenFunction · 0.85

Tested by

no test coverage detected