multi: make SubBatchDelay configurable

This commit adds a new config option `--gossip.sub-batch-delay` so we
can speed up our itest.
This commit is contained in:
yyforyongyu committed 2023-02-17 14:10:09 +08:00
1 parent c6c218f384
commit c3d1d3c4f1
6 files changed
+16 -1

No files matched your search

+4
View File
@@ -47,6 +47,10 @@ const (
// updates that we'll hold onto.
maxPrematureUpdates = 100
// DefaultSubBatchDelay is the default delay we'll use when
// broadcasting the next announcement batch.
DefaultSubBatchDelay = 5 * time.Second
// maxRejectedUpdates tracks the max amount of rejected channel updates
// we'll maintain. This is the global size across all peers. We'll
// allocate ~3 MB max to the cache.