lnwallet: once the reservation workflow is complete, wait then open the payment channel
* Hooks into the ChainNotifier infrastructure to receive a notification once the funding transaction gets enough notifications. * Still need to set up the notification grouting within a LightningChannel to watch for uncooperative closures, and broadcasts and revoked channel states.
This commit is contained in:
1 parent
6e0cfaf7ec
commit
07b0d5ca3e
3 files changed
+38
-17
No files matched your search
@@ -266,7 +266,7 @@ func (r *ChannelReservation) Cancel() error {
|
||||
// NOTE: If this method is called before .CompleteReservation(), it will block
|
||||
// indefinitely.
|
||||
func (r *ChannelReservation) WaitForChannelOpen() *LightningChannel {
|
||||
return nil
|
||||
return <-r.chanOpen
|
||||
}
|
||||
|
||||
// * finish reset of tests
|
||||
|
||||
Reference in new issue
Block a user