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

Function fromwire_opt_amount_msat

plugins/askrene/datastore_wire.c:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static struct amount_msat *fromwire_opt_amount_msat(const tal_t *ctx,
28 const u8 **cursor, size_t *len)
29{
30 struct amount_msat *msat;
31
32 if (!fromwire_bool(cursor, len))
33 return NULL;
34 msat = tal(ctx, struct amount_msat);
35 *msat = fromwire_amount_msat(cursor, len);
36 return msat;
37}
38
39static u32 *fromwire_opt_u32(const tal_t *ctx, const u8 **cursor, size_t *len)
40{

Calls 2

fromwire_boolFunction · 0.50
fromwire_amount_msatFunction · 0.50

Tested by

no test coverage detected