tEnable all nodes to be initially valid. - tordam - A library for peer discovery inside the Tor network HTML git clone https://git.parazyd.org/tordam DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit b97811cbf9b58bcf190ed3cc88aa414a04cc84e6 DIR parent eede97d83771148687d237299d421605537bd171 HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 10 Jul 2018 12:10:14 +0200 Enable all nodes to be initially valid. This commit will allow all the network to see each other even from the start, by setting their "valid" status to "1" initially when they are seen on the network. Diffstat: M pkg/damlib/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/pkg/damlib/validate.go b/pkg/damlib/validate.go t@@ -155,7 +155,7 @@ func ValidateFirstHandshake(req map[string]string) (bool, string) { if ex != 1 { // We did not have this node in redis. info["pubkey"] = pub info["firstseen"] = time.Now().Unix() - info["valid"] = 0 + info["valid"] = 1 } log.Printf("%s: writing to redis\n", req["address"])