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 2019-10-31 21:29:37 -07:00
parent 9eefdef262
commit 4e955dfac6
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465
2 changed files with 0 additions and 16 deletions

@ -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
}

@ -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