You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes one of the last major layer violations in the networking stack.
The network side is no longer in charge of message serialization, so it is now
decoupled from Bitcoin structures. Only the header is serialized and attached
to the payload.
LogPrintf("%s : peer=%d using obsolete version %i; disconnecting\n", __func__, id, nVersion);
473
-
g_connman->PushMessageWithVersion(this, INIT_PROTO_VERSION, NetMsgType::REJECT, strLastCommand, REJECT_OBSOLETE, strprintf("Version must be %d or greater", ActiveProtocol()));
474
+
g_connman->PushMessage(this, CNetMsgMaker(INIT_PROTO_VERSION).Make(NetMsgType::REJECT, strLastCommand, REJECT_OBSOLETE, strprintf("Version must be %d or greater", ActiveProtocol())));
474
475
fDisconnect = true;
475
476
}
476
477
@@ -793,13 +794,13 @@ int CNetMessage::readData(const char* pch, unsigned int nBytes)
793
794
// requires LOCK(cs_vSend)
794
795
size_tSocketSendData(CNode* pnode)
795
796
{
796
-
std::deque<CSerializeData>::iterator it = pnode->vSendMsg.begin();
0 commit comments