Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,824 Lines • ▼ Show 20 Lines | if (strCommand == NetMsgType::REJECT) { | ||||
} | } | ||||
LogPrint(BCLog::NET, "Reject %s\n", SanitizeString(ss.str())); | LogPrint(BCLog::NET, "Reject %s\n", SanitizeString(ss.str())); | ||||
} catch (const std::ios_base::failure &) { | } catch (const std::ios_base::failure &) { | ||||
// Avoid feedback loops by preventing reject messages from | // Avoid feedback loops by preventing reject messages from | ||||
// triggering a new reject message. | // triggering a new reject message. | ||||
LogPrint(BCLog::NET, "Unparseable reject message received\n"); | LogPrint(BCLog::NET, "Unparseable reject message received\n"); | ||||
} | } | ||||
} | } | ||||
return true; | |||||
} | } | ||||
else if (strCommand == NetMsgType::VERSION) { | else if (strCommand == NetMsgType::VERSION) { | ||||
// Each connection can only send one version message | // Each connection can only send one version message | ||||
if (pfrom->nVersion != 0) { | if (pfrom->nVersion != 0) { | ||||
if (g_enable_bip61) { | if (g_enable_bip61) { | ||||
connman->PushMessage( | connman->PushMessage( | ||||
pfrom, | pfrom, | ||||
▲ Show 20 Lines • Show All 2,531 Lines • Show Last 20 Lines |