@@ -214,10 +214,6 @@ type batch struct {
214
214
// currentHeight is the current block height.
215
215
currentHeight int32
216
216
217
- // blockEpochChan is the channel over which block epoch notifications
218
- // are received.
219
- blockEpochChan chan int32
220
-
221
217
// spendChan is the channel over which spend notifications are received.
222
218
spendChan chan * chainntnfs.SpendDetail
223
219
@@ -362,7 +358,6 @@ func NewBatch(cfg batchConfig, bk batchKit) *batch {
362
358
id : - 1 ,
363
359
state : Open ,
364
360
sweeps : make (map [lntypes.Hash ]sweep ),
365
- blockEpochChan : make (chan int32 ),
366
361
spendChan : make (chan * chainntnfs.SpendDetail ),
367
362
confChan : make (chan * chainntnfs.TxConfirmation , 1 ),
368
363
reorgChan : make (chan struct {}, 1 ),
@@ -407,7 +402,6 @@ func NewBatchFromDB(cfg batchConfig, bk batchKit) (*batch, error) {
407
402
state : bk .state ,
408
403
primarySweepID : bk .primaryID ,
409
404
sweeps : bk .sweeps ,
410
- blockEpochChan : make (chan int32 ),
411
405
spendChan : make (chan * chainntnfs.SpendDetail ),
412
406
confChan : make (chan * chainntnfs.TxConfirmation , 1 ),
413
407
reorgChan : make (chan struct {}, 1 ),
0 commit comments