mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
fundingManager: persist state in opening process.
Persists the state of a channel opening process after funding transaction is confirmed. This tracks the messages sent to the peer such that the process can be continued in case of a restart. Also introduces that the receiver side forgets about channel if funding transaction is not confirmed in 48hrs.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
6858b1e1b2
commit
849d0b93b1
4
lnd.go
4
lnd.go
@@ -140,9 +140,9 @@ func lndMain() error {
|
||||
return server.genNodeAnnouncement(true)
|
||||
},
|
||||
SendAnnouncement: func(msg lnwire.Message) error {
|
||||
server.discoverSrv.ProcessLocalAnnouncement(msg,
|
||||
errChan := server.discoverSrv.ProcessLocalAnnouncement(msg,
|
||||
idPrivKey.PubKey())
|
||||
return nil
|
||||
return <-errChan
|
||||
},
|
||||
ArbiterChan: server.breachArbiter.newContracts,
|
||||
SendToPeer: server.sendToPeer,
|
||||
|
Reference in New Issue
Block a user