lnwallet: comment out lnwire-like serialization stuff for now

This commit is contained in:
Olaoluwa Osuntokun 2015-12-18 21:42:49 -06:00
parent 2f7a801dcb
commit a689595054

@ -45,7 +45,22 @@ type ChannelReservation struct {
chanOpen chan *LightningChannel chanOpen chan *LightningChannel
} }
//FundRequest serialize // newChannelReservation...
func newChannelReservation(t FundingType, fundingAmt btcutil.Amount,
minFeeRate btcutil.Amount, wallet *LightningWallet, id uint64) *ChannelReservation {
return &ChannelReservation{
fundingAmount: fundingAmt,
// TODO(roasbeef): assumes balanced symmetric channels.
partialState: &OpenChannelState{
capacity: fundingAmt * 2,
fundingType: t,
},
wallet: wallet,
reservationID: id,
}
}
/*//FundRequest serialize
//(reading from ChannelReservation directly to reduce the amount of copies) //(reading from ChannelReservation directly to reduce the amount of copies)
//We can move this stuff to another file too if it's too big... //We can move this stuff to another file too if it's too big...
func (r *ChannelReservation) SerializeFundRequest() ([]byte, error) { func (r *ChannelReservation) SerializeFundRequest() ([]byte, error) {
@ -219,22 +234,7 @@ func (r *ChannelReservation) SerializeCSVRefundRevocation() ([]byte, error) {
//Validate the revocation, after this step, the channel is fully set up //Validate the revocation, after this step, the channel is fully set up
func (r *ChannelReservation) DeserializeCSVRefundRevocation() error { func (r *ChannelReservation) DeserializeCSVRefundRevocation() error {
return nil return nil
} }*/
// newChannelReservation...
func newChannelReservation(t FundingType, fundingAmt btcutil.Amount,
minFeeRate btcutil.Amount, wallet *LightningWallet, id uint64) *ChannelReservation {
return &ChannelReservation{
fundingAmount: fundingAmt,
// TODO(roasbeef): assumes balanced symmetric channels.
partialState: &OpenChannelState{
capacity: fundingAmt * 2,
fundingType: t,
},
wallet: wallet,
reservationID: id,
}
}
// OurFunds... // OurFunds...
func (r *ChannelReservation) OurFunds() ([]*wire.TxIn, []*wire.TxOut) { func (r *ChannelReservation) OurFunds() ([]*wire.TxIn, []*wire.TxOut) {