channelpadding_negotiation.trunnel 533 B

1234567891011121314151617
  1. const CHANNELPADDING_COMMAND_STOP = 1;
  2. const CHANNELPADDING_COMMAND_START = 2;
  3. /* This command tells the relay to alter its min and max netflow
  4. timeout range values, and send padding at that rate (resuming
  5. if stopped). */
  6. struct channelpadding_negotiate {
  7. u8 version IN [0];
  8. u8 command IN [CHANNELPADDING_COMMAND_START, CHANNELPADDING_COMMAND_STOP];
  9. /* Min must not be lower than the current consensus parameter
  10. nf_ito_low. */
  11. u16 ito_low_ms;
  12. /* Max must not be lower than ito_low_ms */
  13. u16 ito_high_ms;
  14. };