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

Function timestamp_access

gossipd/gossip_generation.c:402–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402static u8 *timestamp_access(const u8 *channel_update)
403{
404 /* BOLT #7:
405 * 1. type: 258 (`channel_update`)
406 * 2. data:
407 * * [`signature`:`signature`]
408 * * [`chain_hash`:`chain_hash`]
409 * * [`short_channel_id`:`short_channel_id`]
410 * * [`u32`:`timestamp`]
411 * * [`byte`:`message_flags`]
412 * * [`byte`:`channel_flags`]
413 */
414 /* Note: 2 bytes for `type` field */
415 return cast_const(u8 *, &channel_update[2 + 64 + 32 + 8]);
416}
417
418static bool is_disabled(const u8 *channel_update)
419{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected