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:
Olaoluwa Osuntokun committed 2016-01-14 23:58:04 -08:00
1 parent 6e0cfaf7ec
commit 07b0d5ca3e
3 files changed
+38 -17

No files matched your search

+1 -1
View File
@@ -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