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

Function fromwire_status_failreason

common/status_wire.c:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <wire/wire.h>
4
5enum status_failreason fromwire_status_failreason(const u8 **cursor,
6 size_t *max)
7{
8 u8 r = fromwire_u8(cursor, max);
9 if (r > STATUS_FAIL_MAX) {
10 fromwire_fail(cursor, max);
11 r = STATUS_FAIL_INTERNAL_ERROR;
12 }
13 return r;
14}
15
16enum log_level fromwire_log_level(const u8 **cursor, size_t *max)
17{

Callers

nothing calls this directly

Calls 2

fromwire_u8Function · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected