mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 15:40:59 +02:00
discovery: update to latest wire msg API changes
This commit is contained in:
@@ -224,7 +224,7 @@ type annBatch struct {
|
|||||||
nodeAnn2 *lnwire.NodeAnnouncement
|
nodeAnn2 *lnwire.NodeAnnouncement
|
||||||
localChanAnn *lnwire.ChannelAnnouncement
|
localChanAnn *lnwire.ChannelAnnouncement
|
||||||
remoteChanAnn *lnwire.ChannelAnnouncement
|
remoteChanAnn *lnwire.ChannelAnnouncement
|
||||||
chanUpdAnn *lnwire.ChannelUpdateAnnouncement
|
chanUpdAnn *lnwire.ChannelUpdate
|
||||||
localProofAnn *lnwire.AnnounceSignatures
|
localProofAnn *lnwire.AnnounceSignatures
|
||||||
remoteProofAnn *lnwire.AnnounceSignatures
|
remoteProofAnn *lnwire.AnnounceSignatures
|
||||||
}
|
}
|
||||||
@@ -284,10 +284,7 @@ func createNodeAnnouncement(priv *btcec.PrivateKey) (*lnwire.NodeAnnouncement,
|
|||||||
error) {
|
error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
alias, err := lnwire.NewAlias("kek" + string(priv.Serialize()))
|
alias := lnwire.NewAlias("kek" + string(priv.Serialize()))
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
a := &lnwire.NodeAnnouncement{
|
a := &lnwire.NodeAnnouncement{
|
||||||
Timestamp: uint32(prand.Int31()),
|
Timestamp: uint32(prand.Int31()),
|
||||||
@@ -305,11 +302,10 @@ func createNodeAnnouncement(priv *btcec.PrivateKey) (*lnwire.NodeAnnouncement,
|
|||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func createUpdateAnnouncement(blockHeight uint32) (*lnwire.ChannelUpdateAnnouncement,
|
func createUpdateAnnouncement(blockHeight uint32) (*lnwire.ChannelUpdate, error) {
|
||||||
error) {
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
a := &lnwire.ChannelUpdateAnnouncement{
|
a := &lnwire.ChannelUpdate{
|
||||||
ShortChannelID: lnwire.ShortChannelID{
|
ShortChannelID: lnwire.ShortChannelID{
|
||||||
BlockHeight: blockHeight,
|
BlockHeight: blockHeight,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user