multi: make tower MaxUpdates configurable

This is helpful in an itest environment where we want to quickly
saturate a session.
This commit is contained in:
Elle Mouton committed 2023-03-20 16:51:51 +02:00
1 parent d840761cc4
commit bad80ff583
3 files changed
+11

No files matched your search

+4
View File
@@ -1497,6 +1497,10 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
policy.SweepFeeRate = sweepRateSatPerVByte.FeePerKWeight()
}
if cfg.WtClient.MaxUpdates != 0 {
policy.MaxUpdates = cfg.WtClient.MaxUpdates
}
sessionCloseRange := uint32(wtclient.DefaultSessionCloseRange)
if cfg.WtClient.SessionCloseRange != 0 {
sessionCloseRange = cfg.WtClient.SessionCloseRange