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

Class amount_msat

tests/fuzz/fuzz-full_channel.c:21–21  ·  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);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected