mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 05:08:13 +02:00
lnwire: add FundingLocked message
When the funding transaction has been confirmed, the FundingLocked message is sent by the peers to each other so that the existence of the newly funded channel can be announced to the network. This commit also removes the SingleFundingOpenProof message.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
e549a3f0ed
commit
eb490b8833
13
server.go
13
server.go
@@ -198,11 +198,14 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
|
||||
s.breachArbiter = newBreachArbiter(wallet, chanDB, notifier, s.htlcSwitch)
|
||||
|
||||
s.fundingMgr, err = newFundingManager(fundingConfig{
|
||||
Wallet: wallet,
|
||||
Notifier: s.chainNotifier,
|
||||
ArbiterChan: s.breachArbiter.newContracts,
|
||||
SendToPeer: s.sendToPeer,
|
||||
FindPeer: s.findPeer,
|
||||
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,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user