lnwire: remove unused MaxMessagePayload const

MaxMessagePayload and MaxSliceLength are duplicate variables. This
commit deletes MaxMessagePayload and keeps MaxSliceLength.
This commit is contained in:
yyforyongyu committed 2021-08-10 05:36:07 +08:00
1 parent 90db8de6fe
commit 4b12f40a48
3 files changed
+2 -6

No files matched your search

+1 -1
View File
@@ -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.