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:
1 parent
e549a3f0ed
commit
eb490b8833
8 files changed
+172
-131
No files matched your search
@@ -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