]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Removing spec quotation from LN_MAX_MSG_LEN definition
authorDr. Maxim Orlovsky <orlovsky@pandoracore.com>
Tue, 21 Jul 2020 12:11:46 +0000 (14:11 +0200)
committerDr Maxim Orlovsky <dr.orlovsky@gmail.com>
Tue, 21 Jul 2020 16:10:58 +0000 (18:10 +0200)
lightning/src/ln/wire.rs

index dc09bbe237384da2523bd91705774648796983e7..43a8cd5ddac6c79ad5d7190df617c73f33719da0 100644 (file)
@@ -17,10 +17,8 @@ use ln::msgs;
 use util::ser::{Readable, Writeable, Writer};
 
 /// Maximum Lightning message data length according to
-/// [BOLT-8](https://github.com/lightningnetwork/lightning-rfc/blob/v1.0/08-transport.md#lightning-message-specification):
-/// "The maximum size of any Lightning message MUST NOT exceed 65535 bytes.
-/// A maximum size of 65535 simplifies testing, makes memory management easier,
-/// and helps mitigate memory-exhaustion attacks."
+/// [BOLT-8](https://github.com/lightningnetwork/lightning-rfc/blob/v1.0/08-transport.md#lightning-message-specification)
+/// and [BOLT-1](https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format):
 pub const LN_MAX_MSG_LEN: usize = std::u16::MAX as usize; // Must be equal to 65535
 
 /// A Lightning message returned by [`read`] when decoding bytes received over the wire. Each