Merge pull request #9175 from ellemouton/g175UpdateMessageStructure

lnwire+netann: update structure of g175 messages to be pure TLV
This commit is contained in:
Elle authored and GitHub committed 2025-09-22 10:04:44 +02:00
commit 055fb436e1
18 files changed
+1460 -268

No files matched your search

+2 -2
View File
@@ -242,7 +242,7 @@ func verifyChannelUpdate2Signature(c *lnwire.ChannelUpdate2,
return fmt.Errorf("unable to reconstruct message data: %w", err)
}
nodeSig, err := c.Signature.ToSignature()
nodeSig, err := c.Signature.Val.ToSignature()
if err != nil {
return err
}
@@ -330,7 +330,7 @@ func ChanUpdate2DigestTag() []byte {
// chanUpdate2DigestToSign computes the digest of the ChannelUpdate2 message to
// be signed.
func chanUpdate2DigestToSign(c *lnwire.ChannelUpdate2) ([]byte, error) {
data, err := c.DataToSign()
data, err := lnwire.SerialiseFieldsToSign(c)
if err != nil {
return nil, err
}