From 331e154f9ae0fe0e177dd5c8dab2ff6b3d6148d2 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 15 Nov 2017 14:40:20 +0100 Subject: [PATCH] Revert "p2p: HACK! put the dialtask directly in the queue" This reverts commit 955a90c1dc2e714ee6d94ea6d1ed058eb6691aee. --- p2p/server.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/p2p/server.go b/p2p/server.go index 7ce0157a49..922df55ba5 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -526,10 +526,7 @@ running: // ephemeral static peer list. Add it to the dialer, // it will keep the node connected. srv.log.Debug("Adding static node", "node", n) - // FIXME: this is a hack, redial does not work - // in simulations if addstatic is used - // dialstate.addStatic(n) - queuedTasks = append(queuedTasks, &dialTask{flags: staticDialedConn, dest: n}) + dialstate.addStatic(n) case n := <-srv.removestatic: // This channel is used by RemovePeer to send a // disconnect request to a peer and begin the