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

Function fromwire_side

common/htlc_wire.c:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280enum side fromwire_side(const u8 **cursor, size_t *max)
281{
282 u8 side = fromwire_u8(cursor, max);
283 if (side >= NUM_SIDES) {
284 side = NUM_SIDES;
285 fromwire_fail(cursor, max);
286 }
287 return side;
288}
289
290void fromwire_shachain(const u8 **cursor, size_t *max,
291 struct shachain *shachain)

Callers 2

fromwire_htlc_stubFunction · 0.85
fromwire_simple_htlcFunction · 0.85

Calls 2

fromwire_u8Function · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected