diff --git a/libp2p/Session.cpp b/libp2p/Session.cpp index 95fd4a3d6..f24377fb2 100644 --- a/libp2p/Session.cpp +++ b/libp2p/Session.cpp @@ -155,7 +155,7 @@ void Session::serviceNodesRequest() addNote("peers", "done"); } -bool Session::frameReceived(uint16_t _capId, PacketType _t, RLP const& _r) +bool Session::readPacket(uint16_t _capId, PacketType _t, RLP const& _r) { m_lastReceived = chrono::steady_clock::now(); clog(NetRight) << _t << _r; @@ -466,7 +466,7 @@ void Session::doRead() { auto packetType = (PacketType)RLP(frame.cropped(0, 1)).toInt(); RLP r(frame.cropped(1)); - if (!frameReceived(header.protocolId, packetType, r)) + if (!readPacket(header.protocolId, packetType, r)) clog(NetWarn) << "Couldn't interpret packet." << RLP(r); } doRead(); diff --git a/libp2p/Session.h b/libp2p/Session.h index ec079cd1d..ba46c5a16 100644 --- a/libp2p/Session.h +++ b/libp2p/Session.h @@ -104,7 +104,7 @@ private: void write(); /// Deliver RLPX packet to Session or Capability for interpretation. - bool frameReceived(uint16_t _capId, PacketType _t, RLP const& _r); + bool readPacket(uint16_t _capId, PacketType _t, RLP const& _r); /// Interpret an incoming Session packet. bool interpret(PacketType _t, RLP const& _r);