lnwallet: remove BlockChainIO as a dependency to LightningChannel
This commit removes the BlockChainIO interface as a dependency to the LightningChannel struct as the interface is no longer used within the operation of the LightningChannel.
This commit is contained in:
5 files changed
+17
-17
No files matched your search
+2
-2
@@ -1230,7 +1230,7 @@ func (l *LightningWallet) handleChannelOpen(req *channelOpenMsg) {
|
||||
|
||||
// Finally, create and officially open the payment channel!
|
||||
// TODO(roasbeef): CreationTime once tx is 'open'
|
||||
channel, err := NewLightningChannel(l.Signer, l.ChainIO, l.chainNotifier,
|
||||
channel, err := NewLightningChannel(l.Signer, l.chainNotifier,
|
||||
res.partialState)
|
||||
if err != nil {
|
||||
req.err <- err
|
||||
@@ -1285,7 +1285,7 @@ out:
|
||||
|
||||
// Finally, create and officially open the payment channel!
|
||||
// TODO(roasbeef): CreationTime once tx is 'open'
|
||||
channel, err := NewLightningChannel(l.Signer, l.ChainIO, l.chainNotifier,
|
||||
channel, err := NewLightningChannel(l.Signer, l.chainNotifier,
|
||||
res.partialState)
|
||||
if err != nil {
|
||||
res.chanOpenErr <- err
|
||||
|
||||
Reference in new issue
Block a user