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

Function fromwire_amount_msat_bounded

tests/fuzz/fuzz-full_channel.c:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#define MAX_HTLCS 1000000
20
21static struct amount_msat fromwire_amount_msat_bounded(const u8 **cursor, size_t *max)
22{
23 u64 amt = fromwire_u64(cursor, max) % (MAX_MSATS + 1);
24 return amount_msat(amt);
25}
26
27static u32 fromwire_bounded_feerate(const u8 **cursor, size_t *max)
28{

Callers 2

init_channelsFunction · 0.70
runFunction · 0.70

Calls 2

amount_msatClass · 0.70
fromwire_u64Function · 0.50

Tested by

no test coverage detected