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

Function fromwire_bool

wire/fromwire.c:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool fromwire_bool(const u8 **cursor, size_t *max)
144{
145 u8 ret;
146
147 if (!fromwire(cursor, max, &ret, sizeof(ret)))
148 return false;
149 if (ret != 0 && ret != 1)
150 fromwire_fail(cursor, max);
151 return ret;
152}
153
154enum jsonrpc_errcode fromwire_jsonrpc_errcode(const u8 **cursor, size_t *max)
155{

Callers 1

fromwire_tx_partsFunction · 0.50

Calls 2

fromwireFunction · 0.70
fromwire_failFunction · 0.70

Tested by

no test coverage detected