autopilot: remove unimpleneted SpliceIn/Out methods
This commit is contained in:
parent
392d6ccc9f
commit
3e1755ee99
@ -139,14 +139,6 @@ func (m *mockChanController) OpenChannel(target *btcec.PublicKey,
|
||||
func (m *mockChanController) CloseChannel(chanPoint *wire.OutPoint) error {
|
||||
return nil
|
||||
}
|
||||
func (m *mockChanController) SpliceIn(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (m *mockChanController) SpliceOut(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
var _ ChannelController = (*mockChanController)(nil)
|
||||
|
||||
@ -391,14 +383,6 @@ func (m *mockFailingChanController) OpenChannel(target *btcec.PublicKey,
|
||||
func (m *mockFailingChanController) CloseChannel(chanPoint *wire.OutPoint) error {
|
||||
return nil
|
||||
}
|
||||
func (m *mockFailingChanController) SpliceIn(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (m *mockFailingChanController) SpliceOut(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
var _ ChannelController = (*mockFailingChanController)(nil)
|
||||
|
||||
|
@ -211,14 +211,4 @@ type ChannelController interface {
|
||||
//
|
||||
// TODO(roasbeef): add force option?
|
||||
CloseChannel(chanPoint *wire.OutPoint) error
|
||||
|
||||
// SpliceIn attempts to add additional funds to the target channel via
|
||||
// a splice in mechanism. The new channel with an updated capacity
|
||||
// should be returned.
|
||||
SpliceIn(chanPoint *wire.OutPoint, amt btcutil.Amount) (*Channel, error)
|
||||
|
||||
// SpliceOut attempts to remove funds from an existing channels using a
|
||||
// splice out mechanism. The removed funds from the channel should be
|
||||
// returned to an output under the control of the backing wallet.
|
||||
SpliceOut(chanPoint *wire.OutPoint, amt btcutil.Amount) (*Channel, error)
|
||||
}
|
||||
|
8
pilot.go
8
pilot.go
@ -124,14 +124,6 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
||||
func (c *chanController) CloseChannel(chanPoint *wire.OutPoint) error {
|
||||
return nil
|
||||
}
|
||||
func (c *chanController) SpliceIn(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*autopilot.Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (c *chanController) SpliceOut(chanPoint *wire.OutPoint,
|
||||
amt btcutil.Amount) (*autopilot.Channel, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// A compile time assertion to ensure chanController meets the
|
||||
// autopilot.ChannelController interface.
|
||||
|
Loading…
Reference in New Issue
Block a user