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

Function channel_flags_access

gossipd/gossip_generation.c:386–400  ·  view source on GitHub ↗

Fast accessors for channel_update fields */

Source from the content-addressed store, hash-verified

384
385/* Fast accessors for channel_update fields */
386static u8 *channel_flags_access(const u8 *channel_update)
387{
388 /* BOLT #7:
389 * 1. type: 258 (`channel_update`)
390 * 2. data:
391 * * [`signature`:`signature`]
392 * * [`chain_hash`:`chain_hash`]
393 * * [`short_channel_id`:`short_channel_id`]
394 * * [`u32`:`timestamp`]
395 * * [`byte`:`message_flags`]
396 * * [`byte`:`channel_flags`]
397 */
398 /* Note: 2 bytes for `type` field */
399 return cast_const(u8 *, &channel_update[2 + 64 + 32 + 8 + 4 + 1]);
400}
401
402static u8 *timestamp_access(const u8 *channel_update)
403{

Callers 2

is_disabledFunction · 0.85
set_disable_flagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected