From 4e955dfac6f4f745b09bfa61a812722bd8a760d9 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 31 Oct 2019 21:29:37 -0700 Subject: [PATCH] lnwallet: remove unused openChanDetails struct We also remove some related and also unused attributes as well along the way. --- lnwallet/reservation.go | 9 --------- lnwallet/wallet.go | 7 ------- 2 files changed, 16 deletions(-) diff --git a/lnwallet/reservation.go b/lnwallet/reservation.go index 36574bb5..e1231e45 100644 --- a/lnwallet/reservation.go +++ b/lnwallet/reservation.go @@ -114,13 +114,6 @@ type ChannelReservation struct { // commitment state. pushMSat lnwire.MilliSatoshi - // chanOpen houses a struct containing the channel and additional - // confirmation details will be sent on once the channel is considered - // 'open'. A channel is open once the funding transaction has reached a - // sufficient number of confirmations. - chanOpen chan *openChanDetails - chanOpenErr chan error - wallet *LightningWallet } @@ -259,8 +252,6 @@ func NewChannelReservation(capacity, localFundingAmt btcutil.Amount, }, pushMSat: pushMSat, reservationID: id, - chanOpen: make(chan *openChanDetails, 1), - chanOpenErr: make(chan error, 1), wallet: wallet, }, nil } diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index b6b552a5..f5a44f5c 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -949,13 +949,6 @@ func (l *LightningWallet) handleSingleContribution(req *addSingleContributionMsg return } -// openChanDetails contains a "finalized" channel which can be considered -// "open" according to the requested confirmation depth at reservation -// initialization. Additionally, the struct contains additional details -// pertaining to the exact location in the main chain in-which the transaction -// was confirmed. -type openChanDetails struct { -} // handleFundingCounterPartySigs is the final step in the channel reservation // workflow. During this step, we validate *all* the received signatures for