From 26a80f86b8634765735b7bb56738f35eeb92ae0f Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 16 Jan 2018 21:18:14 +0100 Subject: [PATCH] peer: set BatchTicker and BatchSize in channellink config --- peer.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/peer.go b/peer.go index e69255d3..62fdf116 100644 --- a/peer.go +++ b/peer.go @@ -397,6 +397,9 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error { ) }, SyncStates: true, + BatchTicker: htlcswitch.NewBatchTicker( + time.NewTicker(50 * time.Millisecond)), + BatchSize: 10, } link := htlcswitch.NewChannelLink(linkCfg, lnChan, uint32(currentHeight)) @@ -1289,6 +1292,9 @@ out: ) }, SyncStates: false, + BatchTicker: htlcswitch.NewBatchTicker( + time.NewTicker(50 * time.Millisecond)), + BatchSize: 10, } link := htlcswitch.NewChannelLink(linkConfig, newChan, uint32(currentHeight))