Browse Source

Print problematic packets only in debug.

cl-refactor
Gav Wood 10 years ago
parent
commit
a7c870fc83
  1. 5
      libp2p/Session.cpp

5
libp2p/Session.cpp

@ -419,8 +419,11 @@ void Session::doRead()
{
auto packetType = (PacketType)RLP(frame.cropped(0, 1)).toInt<unsigned>();
RLP r(frame.cropped(1));
if (!readPacket(hProtocolId, packetType, r))
bool ok = readPacket(hProtocolId, packetType, r);
#if ETH_DEBUG
if (!ok)
clog(NetWarn) << "Couldn't interpret packet." << RLP(r);
#endif
}
doRead();
});

Loading…
Cancel
Save