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

Function fromwire_tx_role

common/tx_roles.c:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10enum tx_role fromwire_tx_role(const u8 **cursor, size_t *max)
11{
12 u8 tx_role = fromwire_u8(cursor, max);
13 if (tx_role >= NUM_TX_ROLES) {
14 tx_role = TX_INITIATOR;
15 fromwire_fail(cursor, max);
16 }
17 return tx_role;
18}

Callers

nothing calls this directly

Calls 2

fromwire_u8Function · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected