chanseries+server: populate ExtraOpaqueData field when reading from disk
This commit is contained in:
parent
88aa74be57
commit
7808288249
@ -166,6 +166,7 @@ func makeNodeAnn(n *channeldb.LightningNode) (*lnwire.NodeAnnouncement, error) {
|
|||||||
Features: n.Features.RawFeatureVector,
|
Features: n.Features.RawFeatureVector,
|
||||||
RGBColor: n.Color,
|
RGBColor: n.Color,
|
||||||
Alias: alias,
|
Alias: alias,
|
||||||
|
ExtraOpaqueData: n.ExtraOpaqueData,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,6 +278,7 @@ func (c *chanSeries) FetchChanUpdates(chain chainhash.Hash,
|
|||||||
HtlcMinimumMsat: e1.MinHTLC,
|
HtlcMinimumMsat: e1.MinHTLC,
|
||||||
BaseFee: uint32(e1.FeeBaseMSat),
|
BaseFee: uint32(e1.FeeBaseMSat),
|
||||||
FeeRate: uint32(e1.FeeProportionalMillionths),
|
FeeRate: uint32(e1.FeeProportionalMillionths),
|
||||||
|
ExtraOpaqueData: e1.ExtraOpaqueData,
|
||||||
}
|
}
|
||||||
chanUpdate.Signature, err = lnwire.NewSigFromRawSignature(e1.SigBytes)
|
chanUpdate.Signature, err = lnwire.NewSigFromRawSignature(e1.SigBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -295,6 +297,7 @@ func (c *chanSeries) FetchChanUpdates(chain chainhash.Hash,
|
|||||||
HtlcMinimumMsat: e2.MinHTLC,
|
HtlcMinimumMsat: e2.MinHTLC,
|
||||||
BaseFee: uint32(e2.FeeBaseMSat),
|
BaseFee: uint32(e2.FeeBaseMSat),
|
||||||
FeeRate: uint32(e2.FeeProportionalMillionths),
|
FeeRate: uint32(e2.FeeProportionalMillionths),
|
||||||
|
ExtraOpaqueData: e1.ExtraOpaqueData,
|
||||||
}
|
}
|
||||||
chanUpdate.Signature, err = lnwire.NewSigFromRawSignature(e2.SigBytes)
|
chanUpdate.Signature, err = lnwire.NewSigFromRawSignature(e2.SigBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -3015,6 +3015,7 @@ func createChannelUpdate(info *channeldb.ChannelEdgeInfo,
|
|||||||
HtlcMinimumMsat: policy.MinHTLC,
|
HtlcMinimumMsat: policy.MinHTLC,
|
||||||
BaseFee: uint32(policy.FeeBaseMSat),
|
BaseFee: uint32(policy.FeeBaseMSat),
|
||||||
FeeRate: uint32(policy.FeeProportionalMillionths),
|
FeeRate: uint32(policy.FeeProportionalMillionths),
|
||||||
|
ExtraOpaqueData: policy.ExtraOpaqueData,
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
Loading…
Reference in New Issue
Block a user