mirror of https://github.com/BTCPrivate/lnd.git
peer: DecodeOnionObfuscator -> ExractErrorEncrypter
This commit is contained in:
parent
a9904b328f
commit
c1f0c4ffda
4
peer.go
4
peer.go
|
@ -399,7 +399,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
||||||
linkCfg := htlcswitch.ChannelLinkConfig{
|
linkCfg := htlcswitch.ChannelLinkConfig{
|
||||||
Peer: p,
|
Peer: p,
|
||||||
DecodeHopIterators: p.server.sphinx.DecodeHopIterators,
|
DecodeHopIterators: p.server.sphinx.DecodeHopIterators,
|
||||||
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
ExtractErrorEncrypter: p.server.sphinx.ExtractErrorEncrypter,
|
||||||
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
||||||
p.PubKey(), lnChan.ShortChanID()),
|
p.PubKey(), lnChan.ShortChanID()),
|
||||||
DebugHTLC: cfg.DebugHTLC,
|
DebugHTLC: cfg.DebugHTLC,
|
||||||
|
@ -1366,7 +1366,7 @@ out:
|
||||||
linkConfig := htlcswitch.ChannelLinkConfig{
|
linkConfig := htlcswitch.ChannelLinkConfig{
|
||||||
Peer: p,
|
Peer: p,
|
||||||
DecodeHopIterators: p.server.sphinx.DecodeHopIterators,
|
DecodeHopIterators: p.server.sphinx.DecodeHopIterators,
|
||||||
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
ExtractErrorEncrypter: p.server.sphinx.ExtractErrorEncrypter,
|
||||||
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
||||||
p.PubKey(), newChanReq.channel.ShortChanID()),
|
p.PubKey(), newChanReq.channel.ShortChanID()),
|
||||||
DebugHTLC: cfg.DebugHTLC,
|
DebugHTLC: cfg.DebugHTLC,
|
||||||
|
|
Loading…
Reference in New Issue