Prune nodes that have not announced themselves for certain time period.

This commit is contained in:
Milos Gajdos
2019-09-03 10:00:14 +01:00
parent 5440325a18
commit ec6318befc
2 changed files with 62 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ var (
ResolveTime = 1 * time.Minute
// AnnounceTime defines time interval to periodically announce node neighbours
AnnounceTime = 30 * time.Second
// 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
)
// Node is network node