peer: remove Switch from channel link config
This commit is contained in:
parent
d468a36d69
commit
972d238f04
40
peer.go
40
peer.go
@ -383,15 +383,17 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||||||
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
DecodeOnionObfuscator: 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,
|
||||||
HodlHTLC: cfg.HodlHTLC,
|
HodlHTLC: cfg.HodlHTLC,
|
||||||
Registry: p.server.invoices,
|
Registry: p.server.invoices,
|
||||||
Switch: p.server.htlcSwitch,
|
Switch: p.server.htlcSwitch,
|
||||||
FwrdingPolicy: *forwardingPolicy,
|
Circuits: p.server.htlcSwitch.CircuitModifier(),
|
||||||
FeeEstimator: p.server.cc.feeEstimator,
|
ForwardPackets: p.server.htlcSwitch.ForwardPackets,
|
||||||
BlockEpochs: blockEpoch,
|
FwrdingPolicy: *forwardingPolicy,
|
||||||
PreimageCache: p.server.witnessBeacon,
|
FeeEstimator: p.server.cc.feeEstimator,
|
||||||
ChainEvents: chainEvents,
|
BlockEpochs: blockEpoch,
|
||||||
|
PreimageCache: p.server.witnessBeacon,
|
||||||
|
ChainEvents: chainEvents,
|
||||||
UpdateContractSignals: func(signals *contractcourt.ContractSignals) error {
|
UpdateContractSignals: func(signals *contractcourt.ContractSignals) error {
|
||||||
return p.server.chainArb.UpdateContractSignals(
|
return p.server.chainArb.UpdateContractSignals(
|
||||||
*chanPoint, signals,
|
*chanPoint, signals,
|
||||||
@ -1281,15 +1283,17 @@ out:
|
|||||||
DecodeOnionObfuscator: p.server.sphinx.ExtractErrorEncrypter,
|
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()),
|
||||||
DebugHTLC: cfg.DebugHTLC,
|
DebugHTLC: cfg.DebugHTLC,
|
||||||
HodlHTLC: cfg.HodlHTLC,
|
HodlHTLC: cfg.HodlHTLC,
|
||||||
Registry: p.server.invoices,
|
Registry: p.server.invoices,
|
||||||
Switch: p.server.htlcSwitch,
|
Switch: p.server.htlcSwitch,
|
||||||
FwrdingPolicy: p.server.cc.routingPolicy,
|
Circuits: p.server.htlcSwitch.CircuitModifier(),
|
||||||
FeeEstimator: p.server.cc.feeEstimator,
|
ForwardPackets: p.server.htlcSwitch.ForwardPackets,
|
||||||
BlockEpochs: blockEpoch,
|
FwrdingPolicy: p.server.cc.routingPolicy,
|
||||||
PreimageCache: p.server.witnessBeacon,
|
FeeEstimator: p.server.cc.feeEstimator,
|
||||||
ChainEvents: chainEvents,
|
BlockEpochs: blockEpoch,
|
||||||
|
PreimageCache: p.server.witnessBeacon,
|
||||||
|
ChainEvents: chainEvents,
|
||||||
UpdateContractSignals: func(signals *contractcourt.ContractSignals) error {
|
UpdateContractSignals: func(signals *contractcourt.ContractSignals) error {
|
||||||
return p.server.chainArb.UpdateContractSignals(
|
return p.server.chainArb.UpdateContractSignals(
|
||||||
*chanPoint, signals,
|
*chanPoint, signals,
|
||||||
|
Loading…
Reference in New Issue
Block a user