From 20d471a766467993703eac448ed7759fa13d044b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 19 Jan 2016 20:39:10 -0800 Subject: [PATCH] lnwalelt: add note for balance update ntfs --- lnwallet/wallet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 1023fa28..f37d5fd9 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -473,6 +473,11 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg // when we encounter an error condition. l.coinSelectMtx.Lock() + // TODO(roasbeef): check if balance is insufficient, if so then select + // on two channels, one is a time.After that will bail out with + // insuffcient funds, the other is a notification that the balance has + // been updated make(chan struct{}, 1). + // Find all unlocked unspent outputs with greater than 6 confirmations. maxConfs := int32(math.MaxInt32) // TODO(roasbeef): make 6 a config paramter?