mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 19:30:46 +02:00
contractcourt/channel_arbitrator: stop block epoch on channel attendant exit
This commit is contained in:
@@ -305,8 +305,6 @@ func (c *ChannelArbitrator) Stop() error {
|
|||||||
close(c.quit)
|
close(c.quit)
|
||||||
c.wg.Wait()
|
c.wg.Wait()
|
||||||
|
|
||||||
c.cfg.BlockEpochs.Cancel()
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1293,7 +1291,10 @@ func (c *ChannelArbitrator) UpdateContractSignals(newSignals *ContractSignals) {
|
|||||||
func (c *ChannelArbitrator) channelAttendant(bestHeight int32) {
|
func (c *ChannelArbitrator) channelAttendant(bestHeight int32) {
|
||||||
|
|
||||||
// TODO(roasbeef): tell top chain arb we're done
|
// TODO(roasbeef): tell top chain arb we're done
|
||||||
defer c.wg.Done()
|
defer func() {
|
||||||
|
c.cfg.BlockEpochs.Cancel()
|
||||||
|
c.wg.Done()
|
||||||
|
}()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Reference in New Issue
Block a user