diff --git a/wallet/channel.go b/wallet/channel.go index e9d7428d..68d8d24c 100644 --- a/wallet/channel.go +++ b/wallet/channel.go @@ -1,4 +1,33 @@ package wallet +import ( + "sync" + + "li.lan/labs/plasma/chainntfs" + "li.lan/labs/plasma/revocation" + + "github.com/btcsuite/btcwallet/walletdb" +) + type LightningChannel struct { + shachan *revocation.ShaChain + wallet *LightningWallet + + channelEvents *chainntnfs.ChainNotifier + + sync.RWMutex + + channelNamespace walletdb.Namespace + + // TODO(roasbeef): create and embed 'Service' interface w/ below? + started int32 + + shutdown int32 + + quit chan struct{} + wg sync.WaitGroup +} + +func newLightningChannel() *LightningChannel { + return nil }