mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
netann/channel_update: use generic SignAnnouncement
This commit is contained in:
parent
df44d19936
commit
9d92cfd2b4
1 changed files with 1 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue