Skip to content

Commit ad0ffcd

Browse files
committed
Removing spec quotation from LN_MAX_MSG_LEN definition
1 parent 52c5170 commit ad0ffcd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning/src/ln/wire.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ use ln::msgs;
1717
use util::ser::{Readable, Writeable, Writer};
1818

1919
/// 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):
2422
pub const LN_MAX_MSG_LEN: usize = std::u16::MAX as usize; // Must be equal to 65535
2523

2624
/// A Lightning message returned by [`read`] when decoding bytes received over the wire. Each

0 commit comments

Comments
 (0)