netann/channel_update: use generic SignAnnouncement
This commit is contained in:
parent
df44d19936
commit
9d92cfd2b4
@ -55,13 +55,8 @@ func SignChannelUpdate(signer lnwallet.MessageSigner, pubKey *btcec.PublicKey,
|
|||||||
}
|
}
|
||||||
update.Timestamp = newTimestamp
|
update.Timestamp = newTimestamp
|
||||||
|
|
||||||
chanUpdateMsg, err := update.DataToSign()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create the DER-encoded ECDSA signature over the message digest.
|
// 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user