From 8e8b6de2558f9001c51b2644e2191adf725cf2b5 Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 18 Feb 2015 01:03:18 -0500 Subject: [PATCH] advance transition --- libp2p/Host.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libp2p/Host.cpp b/libp2p/Host.cpp index d79b6bd39..4d3998f95 100644 --- a/libp2p/Host.cpp +++ b/libp2p/Host.cpp @@ -385,6 +385,8 @@ void PeerHandshake::transition(boost::system::error_code _ech) { auto self(shared_from_this()); if (isNew()) { + state = AckAuth; + clog(NetConnect) << "Authenticating connection for " << socket->remote_endpoint(); if (originated) @@ -440,6 +442,9 @@ void PeerHandshake::transition(boost::system::error_code _ech) { } } else if (isAcking()) + { + state = Authenticating; + if (originated) { clog(NetConnect) << "devp2p.connect.egress recving ack"; @@ -474,6 +479,7 @@ void PeerHandshake::transition(boost::system::error_code _ech) { transition(ec); }); } + } else if (isAuthenticating()) { if (originated)