lnwallet: remove FundingType enum

Removing as segwit is now the path forward.
This commit is contained in:
Olaoluwa Osuntokun committed 2016-05-03 20:06:30 -07:00
1 parent 20f5ff56eb
commit 163eb8dcb8
2 files changed
+5 -41

No files matched your search

+2 -6
View File
@@ -79,9 +79,6 @@ type ChannelContribution struct {
// * We then verify the validity of all signatures before considering the
// channel "open".
type ChannelReservation struct {
// TODO(roasbeef): remove this? we're only implementing the golden...
fundingType FundingType
// This mutex MUST be held when either reading or modifying any of the
// fields below.
sync.RWMutex
@@ -120,11 +117,10 @@ type ChannelReservation struct {
// used only internally by lnwallet. In order to concurrent safety, the creation
// of all channel reservations should be carried out via the
// lnwallet.InitChannelReservation interface.
func newChannelReservation(t FundingType, fundingAmt btcutil.Amount,
minFeeRate btcutil.Amount, wallet *LightningWallet, id uint64) *ChannelReservation {
func newChannelReservation(fundingAmt btcutil.Amount, minFeeRate btcutil.Amount,
wallet *LightningWallet, id uint64) *ChannelReservation {
// TODO(roasbeef): CSV here, or on delay?
return &ChannelReservation{
fundingType: t,
ourContribution: &ChannelContribution{
FundingAmount: fundingAmt,
},