Merge pull request #2885 from cfromknecht/stagger-initial-reconnect

server: stagger initial reconnects
This commit is contained in:
Conner Fromknecht
2019-04-05 15:46:12 -07:00
committed by GitHub
2 changed files with 46 additions and 1 deletions

View File

@@ -256,6 +256,8 @@ type config struct {
RejectPush bool `long:"rejectpush" description:"If true, lnd will not accept channel opening requests with non-zero push amounts. This should prevent accidental pushes to merchant nodes."`
StaggerInitialReconnect bool `long:"stagger-initial-reconnect" description:"If true, will apply a randomized staggering between 0s and 30s when reconnecting to persistent peers on startup. The first 10 reconnections will be attempted instantly, regardless of the flag's value"`
net tor.Net
Routing *routing.Conf `group:"routing" namespace:"routing"`