Added health system to count how many times a node

fails to conenct.
This commit is contained in:
Tim Beatham
2023-11-06 09:54:06 +00:00
parent 4dc85f3861
commit c88012cf71
15 changed files with 161 additions and 23 deletions

View File

@@ -15,7 +15,7 @@ func getExampleConfiguration() *WgMeshConfiguration {
SyncRate: 1,
InterClusterChance: 0.1,
BranchRate: 2,
KeepAliveRate: 1,
KeepAliveTime: 1,
InfectionCount: 1,
}
}
@@ -110,7 +110,7 @@ func InfectionCountZero(t *testing.T) {
func KeepAliveRateZero(t *testing.T) {
conf := getExampleConfiguration()
conf.KeepAliveRate = 0
conf.KeepAliveTime = 0
err := ValidateConfiguration(conf)