From 46ad8389b213eecc8a63c8d7b8e6ddac7d6b46ea Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 15 Dec 2015 15:24:43 -0600 Subject: [PATCH] note to self on steps after funding broadcast --- wallet/wallet.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index e6a2cee2..1013c7a7 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -3,7 +3,6 @@ package wallet import ( "bytes" "encoding/binary" - "encoding/hex" "errors" "fmt" "math" @@ -654,6 +653,13 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs }) // TODO(roasbeef): broadcast now? + // * create goroutine, listens on blockconnected+blockdisconnected channels + // * after six blocks, then will create an LightningChannel struct and + // send over reservation. + // * will need a multi-plexer to fan out, to listen on ListenConnectedBlocks + // * should prob be a separate struct/modele + // * use NotifySpent in order to catch non-cooperative spends of revoked + // commitment txns. Hmm using p2sh or bare multi-sig? msg.err <- writeErr }