lnwallet: remove unused openChanDetails struct

We also remove some related and also unused attributes as well along the
way.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-12-02 17:11:29 -06:00
1 parent 9eefdef262
commit 4e955dfac6
2 files changed
-16

No files matched your search

-9
View File
@@ -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
}