Browse Source

removed unneeded invariant checks, fixed disconnect message priority

cl-refactor
arkpar 10 years ago
parent
commit
4983db8e58
  1. 2
      libethereum/BlockChainSync.cpp
  2. 2
      libp2p/Session.cpp

2
libethereum/BlockChainSync.cpp

@ -92,7 +92,6 @@ void BlockChainSync::onPeerStatus(std::shared_ptr<EthereumPeer> _peer)
_peer->m_expectedHashes = hashes;
onNewPeer(_peer);
}
DEV_INVARIANT_CHECK;
}
unsigned BlockChainSync::estimatedHashes() const
@ -293,7 +292,6 @@ void BlockChainSync::onPeerNewBlock(std::shared_ptr<EthereumPeer> _peer, RLP con
DEV_GUARDED(_peer->x_knownBlocks)
_peer->m_knownBlocks.insert(h);
}
DEV_INVARIANT_CHECK;
}
PV60Sync::PV60Sync(EthereumHost& _host):

2
libp2p/Session.cpp

@ -315,7 +315,7 @@ void Session::drop(DisconnectReason _reason)
if (socket.is_open())
try
{
clog(NetWarn) << "Closing " << socket.remote_endpoint() << "(" << reasonOf(_reason) << ")";
clog(NetConnect) << "Closing " << socket.remote_endpoint() << "(" << reasonOf(_reason) << ")";
boost::system::error_code ec;
socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
socket.close();

Loading…
Cancel
Save