| 400 | } |
| 401 | |
| 402 | static 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 | |
| 418 | static bool is_disabled(const u8 *channel_update) |
| 419 | { |
no outgoing calls
no test coverage detected