All files / lib MessageType.ts

100% Statements 21/21
100% Branches 2/2
100% Functions 1/1
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37      1x   1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x           1x 1x 1x 1x   1x 1x   1x 1x   1x    
/**
 * Defined in BOLT01
 */
export enum MessageType {
  // Setup and Control (0 - 31)
  Init = 16,
  Error = 17,
  Ping = 18,
  Pong = 19,
 
  // Channel (32-127)
  OpenChannel = 32,
  AcceptChannel = 33,
  FundingCreated = 34,
  FundingSigned = 35,
  FundingLocked = 36,
  Shutdown = 38,
  ClosingSigned = 39,
 
  // Commitment (128-255)
  //
 
  // Routing (256-511)
  ChannelAnnouncement = 256,
  NodeAnnouncement = 257,
  ChannelUpdate = 258,
  AnnouncementSignatures = 259,
 
  QueryShortChannelIds = 261,
  ReplyShortChannelIdsEnd = 262,
 
  QueryChannelRange = 263,
  ReplyChannelRange = 264,
 
  GossipTimestampFilter = 265,
}