tAdd TODO note about node promotion. - 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 43eb442184673b5e515cd0b300647a528365f1b3
DIR parent 981caf61355876ee9b99b19201a3f96fc1298048
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 11 Dec 2017 22:49:01 +0100
Add TODO note about node promotion.
Diffstat:
M cmd/dam-dir/main.go | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go
t@@ -86,6 +86,8 @@ func handlePost(rw http.ResponseWriter, request *http.Request) {
len(n.Message) == 0 || len(n.Signature) == 0 {
return
}
+ // TODO: When a node wants to promote itself from something it already was,
+ // what to do?
switch n.Nodetype {
case "node":
log.Println("Client of type:", n.Nodetype)