peer: adds FwdPkgGCTicker to channel configs

This commit is contained in:
Conner Fromknecht 2018-02-16 02:53:53 -08:00
parent 0e4be6a04a
commit 8d0e3dc467
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF
1 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,8 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
SyncStates: true,
BatchTicker: htlcswitch.NewBatchTicker(
time.NewTicker(50 * time.Millisecond)),
FwdPkgGCTicker: htlcswitch.NewBatchTicker(
time.NewTicker(time.Minute)),
BatchSize: 10,
}
link := htlcswitch.NewChannelLink(linkCfg, lnChan,
@ -1294,6 +1296,8 @@ out:
SyncStates: false,
BatchTicker: htlcswitch.NewBatchTicker(
time.NewTicker(50 * time.Millisecond)),
FwdPkgGCTicker: htlcswitch.NewBatchTicker(
time.NewTicker(time.Minute)),
BatchSize: 10,
}
link := htlcswitch.NewChannelLink(linkConfig, newChan,