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

Function fromwire_side

common/htlc_wire.c:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321enum side fromwire_side(const u8 **cursor, size_t *max)
322{
323 u8 side = fromwire_u8(cursor, max);
324 if (side >= NUM_SIDES) {
325 side = NUM_SIDES;
326 fromwire_fail(cursor, max);
327 }
328 return side;
329}
330
331void fromwire_shachain(const u8 **cursor, size_t *max,
332 struct shachain *shachain)

Callers

nothing calls this directly

Calls 2

fromwire_u8Function · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected