Browse Source

advance transition

cl-refactor
subtly 10 years ago
parent
commit
8e8b6de255
  1. 6
      libp2p/Host.cpp

6
libp2p/Host.cpp

@ -385,6 +385,8 @@ void PeerHandshake::transition(boost::system::error_code _ech) {
auto self(shared_from_this()); auto self(shared_from_this());
if (isNew()) if (isNew())
{ {
state = AckAuth;
clog(NetConnect) << "Authenticating connection for " << socket->remote_endpoint(); clog(NetConnect) << "Authenticating connection for " << socket->remote_endpoint();
if (originated) if (originated)
@ -440,6 +442,9 @@ void PeerHandshake::transition(boost::system::error_code _ech) {
} }
} }
else if (isAcking()) else if (isAcking())
{
state = Authenticating;
if (originated) if (originated)
{ {
clog(NetConnect) << "devp2p.connect.egress recving ack"; clog(NetConnect) << "devp2p.connect.egress recving ack";
@ -474,6 +479,7 @@ void PeerHandshake::transition(boost::system::error_code _ech) {
transition(ec); transition(ec);
}); });
} }
}
else if (isAuthenticating()) else if (isAuthenticating())
{ {
if (originated) if (originated)

Loading…
Cancel
Save