reusable open channel logic and share macaroon

This commit is contained in:
Jesse de Wit
2022-12-03 10:47:47 +01:00
parent b3c5b94531
commit e31a4c43f3
8 changed files with 249 additions and 248 deletions

View File

@@ -23,7 +23,7 @@ type OpenChannelRequest struct {
type LightningClient interface {
GetInfo() (*GetInfoResult, error)
IsConnected(destination []byte) (*bool, error)
IsConnected(destination []byte) (bool, error)
OpenChannel(req *OpenChannelRequest) (*wire.OutPoint, error)
GetChannel(peerID []byte, channelPoint wire.OutPoint) (*GetChannelResult, error)
GetNodeChannelCount(nodeID []byte) (int, error)