Regular sync with network every 5 minutes. Apply routes before peering.

This commit is contained in:
Milos Gajdos
2020-01-10 19:02:42 +00:00
parent 1e009e52dd
commit 11904e1137
2 changed files with 62 additions and 21 deletions

View File

@@ -19,6 +19,8 @@ var (
AnnounceTime = 1 * time.Second
// KeepAliveTime is the time in which we want to have sent a message to a peer
KeepAliveTime = 30 * time.Second
// SyncTime is the time a network node requests full sync from the network
SyncTime = 5 * time.Minute
// PruneTime defines time interval to periodically check nodes that need to be pruned
// due to their not announcing their presence within this time interval
PruneTime = 90 * time.Second