netann/channel_update: use generic SignAnnouncement

This commit is contained in:
Conner Fromknecht 2020-03-17 16:23:19 -07:00
parent df44d19936
commit 9d92cfd2b4
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -55,13 +55,8 @@ func SignChannelUpdate(signer lnwallet.MessageSigner, pubKey *btcec.PublicKey,
}
update.Timestamp = newTimestamp
chanUpdateMsg, err := update.DataToSign()
if err != nil {
return err
}
// Create the DER-encoded ECDSA signature over the message digest.
sig, err := signer.SignMessage(pubKey, chanUpdateMsg)
sig, err := SignAnnouncement(signer, pubKey, update)
if err != nil {
return err
}