peer: set BatchTicker and BatchSize in channellink config

This commit is contained in:
Johan T. Halseth committed 2018-02-02 21:16:37 -05:00
1 parent cc050f183f
commit 26a80f86b8
1 file changed
+6
+6
View File
@@ -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))