mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
funding: rename ProcessRoutingMessage to SendToRouter
This commit renames routing processing method in the funding mangers config from ProcessRoutingMessage to SendToRouter and also modifies the signature to only require the message itself and not the server’s identity public key.
This commit is contained in:
19
server.go
19
server.go
@@ -198,14 +198,17 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
|
||||
s.breachArbiter = newBreachArbiter(wallet, chanDB, notifier, s.htlcSwitch)
|
||||
|
||||
s.fundingMgr, err = newFundingManager(fundingConfig{
|
||||
IDKey: s.identityPriv.PubKey(),
|
||||
Wallet: wallet,
|
||||
Notifier: s.chainNotifier,
|
||||
ProcessRoutingMessage: s.chanRouter.ProcessRoutingMessage,
|
||||
ArbiterChan: s.breachArbiter.newContracts,
|
||||
SendToPeer: s.sendToPeer,
|
||||
FindPeer: s.findPeer,
|
||||
FindChannel: s.rpcServer.fetchActiveChannel,
|
||||
IDKey: s.identityPriv.PubKey(),
|
||||
Wallet: wallet,
|
||||
Notifier: s.chainNotifier,
|
||||
SendToRouter: func(msg lnwire.Message) {
|
||||
s.chanRouter.ProcessRoutingMessage(msg,
|
||||
s.identityPriv.PubKey())
|
||||
},
|
||||
ArbiterChan: s.breachArbiter.newContracts,
|
||||
SendToPeer: s.sendToPeer,
|
||||
FindPeer: s.findPeer,
|
||||
FindChannel: s.rpcServer.fetchActiveChannel,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user