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

Function fromwire_compact_len

wallet/psbt_fixup.c:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static size_t fromwire_compact_len(const u8 **cursor, size_t *max)
58{
59 u64 len = fromwire_compact_size(cursor, max);
60 if (len > *max) {
61 fromwire_fail(cursor, max);
62 return 0;
63 }
64 return len;
65}
66
67/* BIP-0174:
68 * <keypair> := <key> <value>

Callers 1

fromwire_keypairFunction · 0.85

Calls 2

fromwire_compact_sizeFunction · 0.85
fromwire_failFunction · 0.50

Tested by

no test coverage detected