mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-19 07:04:25 +01:00
lnwire: fix CommitSignature max payload length
This commit increase the max allowed payload length for the CommitSignature method in order to account for the added 8 byte log index.
This commit is contained in:
@@ -101,8 +101,8 @@ func (c *CommitSignature) Command() uint32 {
|
|||||||
//
|
//
|
||||||
// This is part of the lnwire.Message interface.
|
// This is part of the lnwire.Message interface.
|
||||||
func (c *CommitSignature) MaxPayloadLength(uint32) uint32 {
|
func (c *CommitSignature) MaxPayloadLength(uint32) uint32 {
|
||||||
// 36 + 8 + 73
|
// 36 + 8 + 8 + 73
|
||||||
return 117
|
return 125
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate performs any necessary sanity checks to ensure all fields present
|
// Validate performs any necessary sanity checks to ensure all fields present
|
||||||
|
|||||||
Reference in New Issue
Block a user