From 0e4be6a04a438ed9f1adeb3abf8275d4e7398e43 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 16 Jan 2018 00:52:39 -0800 Subject: [PATCH] peer: init link with batched sphinx processing --- peer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peer.go b/peer.go index a2f92738..92026ff7 100644 --- a/peer.go +++ b/peer.go @@ -379,6 +379,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error { linkCfg := htlcswitch.ChannelLinkConfig{ Peer: p, DecodeHopIterator: p.server.sphinx.DecodeHopIterator, + DecodeHopIterators: p.server.sphinx.DecodeHopIterators, DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter, GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter, p.PubKey(), lnChan.ShortChanID()), @@ -1272,6 +1273,7 @@ out: linkConfig := htlcswitch.ChannelLinkConfig{ Peer: p, DecodeHopIterator: p.server.sphinx.DecodeHopIterator, + DecodeHopIterators: p.server.sphinx.DecodeHopIterators, DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter, GetLastChannelUpdate: createGetLastUpdate(p.server.chanRouter, p.PubKey(), newChanReq.channel.ShortChanID()),