File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,8 @@ use ln::msgs;
17
17
use util:: ser:: { Readable , Writeable , Writer } ;
18
18
19
19
/// Maximum Lightning message data length according to
20
- /// [BOLT-8](https://github.com/lightningnetwork/lightning-rfc/blob/v1.0/08-transport.md#lightning-message-specification):
21
- /// "The maximum size of any Lightning message MUST NOT exceed 65535 bytes.
22
- /// A maximum size of 65535 simplifies testing, makes memory management easier,
23
- /// and helps mitigate memory-exhaustion attacks."
20
+ /// [BOLT-8](https://github.com/lightningnetwork/lightning-rfc/blob/v1.0/08-transport.md#lightning-message-specification)
21
+ /// and [BOLT-1](https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format):
24
22
pub const LN_MAX_MSG_LEN : usize = std:: u16:: MAX as usize ; // Must be equal to 65535
25
23
26
24
/// A Lightning message returned by [`read`] when decoding bytes received over the wire. Each
You can’t perform that action at this time.
0 commit comments