mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
lnwire: remove unused MaxMessagePayload const
MaxMessagePayload and MaxSliceLength are duplicate variables. This commit deletes MaxMessagePayload and keeps MaxSliceLength.
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
// ReadSize represents the size of the maximum message that can be read off the
|
||||
// wire by brontide. The buffer is used to hold the ciphertext while the
|
||||
// brontide state machine decrypts the message.
|
||||
const ReadSize = lnwire.MaxMessagePayload + 16
|
||||
const ReadSize = lnwire.MaxSliceLength + 16
|
||||
|
||||
// Read is a static byte array sized to the maximum-allowed Lightning message
|
||||
// size, plus 16 bytes for the MAC.
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
// WriteSize represents the size of the maximum plaintext message than can be
|
||||
// sent using brontide. The buffer does not include extra space for the MAC, as
|
||||
// that is applied by the Noise protocol after encrypting the plaintext.
|
||||
const WriteSize = lnwire.MaxMessagePayload
|
||||
const WriteSize = lnwire.MaxSliceLength
|
||||
|
||||
// Write is static byte array occupying to maximum-allowed plaintext-message
|
||||
// size.
|
||||
|
Reference in New Issue
Block a user