From 4bb4b0fe4e603a69cc6f910028741a892aa61d87 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 10 Apr 2019 19:31:48 -0700 Subject: [PATCH] discovery: increase DefaultHistoricalSyncInterval to one hour Assuming a graph size of 50,000 channels, an interval of 20 minutes would cause nodes to consume about 600MB per month in bandwidth doing these routine historical sync spot checks. In this commit, we increase to one hour, which consumes about 300MB per month. --- discovery/sync_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/sync_manager.go b/discovery/sync_manager.go index fdf013e5..7cf11316 100644 --- a/discovery/sync_manager.go +++ b/discovery/sync_manager.go @@ -21,7 +21,7 @@ const ( // DefaultHistoricalSyncInterval is the default interval in which we'll // force a historical sync to ensure we have as much of the public // network as possible. - DefaultHistoricalSyncInterval = 20 * time.Minute + DefaultHistoricalSyncInterval = time.Hour // DefaultActiveSyncerTimeout is the default timeout interval in which // we'll wait until an active syncer has completed its state machine and