peer+server: use new sphinx package and htlcswitch package type names
This commit is contained in:
parent
a7d846ac40
commit
63838f5764
4
peer.go
4
peer.go
@ -375,7 +375,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||||||
linkCfg := htlcswitch.ChannelLinkConfig{
|
linkCfg := htlcswitch.ChannelLinkConfig{
|
||||||
Peer: p,
|
Peer: p,
|
||||||
DecodeHopIterator: p.server.sphinx.DecodeHopIterator,
|
DecodeHopIterator: p.server.sphinx.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: p.server.sphinx.DecodeOnionObfuscator,
|
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
||||||
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
||||||
p.PubKey(), lnChan.ShortChanID()),
|
p.PubKey(), lnChan.ShortChanID()),
|
||||||
SettledContracts: p.server.breachArbiter.settledContracts,
|
SettledContracts: p.server.breachArbiter.settledContracts,
|
||||||
@ -1051,7 +1051,7 @@ out:
|
|||||||
linkConfig := htlcswitch.ChannelLinkConfig{
|
linkConfig := htlcswitch.ChannelLinkConfig{
|
||||||
Peer: p,
|
Peer: p,
|
||||||
DecodeHopIterator: p.server.sphinx.DecodeHopIterator,
|
DecodeHopIterator: p.server.sphinx.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: p.server.sphinx.DecodeOnionObfuscator,
|
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
||||||
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter,
|
||||||
p.PubKey(), newChanReq.channel.ShortChanID()),
|
p.PubKey(), newChanReq.channel.ShortChanID()),
|
||||||
SettledContracts: p.server.breachArbiter.settledContracts,
|
SettledContracts: p.server.breachArbiter.settledContracts,
|
||||||
|
@ -255,10 +255,10 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
|||||||
circuit *sphinx.Circuit) ([32]byte, error) {
|
circuit *sphinx.Circuit) ([32]byte, error) {
|
||||||
|
|
||||||
// Using the created circuit, initialize the error
|
// Using the created circuit, initialize the error
|
||||||
// decryptor so we can parse+decode any failures
|
// decrypter so we can parse+decode any failures
|
||||||
// incurred by this payment within the switch.
|
// incurred by this payment within the switch.
|
||||||
errorDecryptor := &htlcswitch.FailureDeobfuscator{
|
errorDecryptor := &htlcswitch.SphinxErrorDecrypter{
|
||||||
OnionDeobfuscator: sphinx.NewOnionDeobfuscator(circuit),
|
OnionErrorDecrypter: sphinx.NewOnionErrorDecrypter(circuit),
|
||||||
}
|
}
|
||||||
|
|
||||||
var firstHopPub [33]byte
|
var firstHopPub [33]byte
|
||||||
|
Loading…
Reference in New Issue
Block a user