Fast accessors for channel_update fields */
| 384 | |
| 385 | /* Fast accessors for channel_update fields */ |
| 386 | static 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 | |
| 402 | static u8 *timestamp_access(const u8 *channel_update) |
| 403 | { |
no outgoing calls
no test coverage detected