| 8 | } |
| 9 | |
| 10 | enum 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 | } |
nothing calls this directly
no test coverage detected