v29.4-roots.3 · Commit 7: [PATCH 07/30] release: establish Roots maintenance and assurance
src/net.h
Before: src/net.h · After: src/net.h
File metadata
index 6146a4f94739af109081a194ad585d619a566f62..07207f4c3ad732124d7412ed1c23ef81fe07c97a 100644
Download original patch · Release notes
Diff rows 1–25 of 25. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/net.h
CHANGED
|
@@ -961,25 +961,6 @@ public:
|
|
|
961
961
|
|
|
962
962
|
void CopyStats(CNodeStats& stats) EXCLUSIVE_LOCKS_REQUIRED(!m_subver_mutex, !m_addr_local_mutex, !cs_vSend, !cs_vRecv);
|
|
963
963
|
|
|
964
|
-
bool PunishInvalidBlocks() const
|
|
965
|
-
{
|
|
966
|
-
if (HasPermission(NetPermissionFlags::NoBan)) {
|
|
967
|
-
return false;
|
|
968
|
-
}
|
|
969
|
-
switch (m_conn_type) {
|
|
970
|
-
case ConnectionType::INBOUND:
|
|
971
|
-
case ConnectionType::MANUAL:
|
|
972
|
-
case ConnectionType::FEELER:
|
|
973
|
-
return false;
|
|
974
|
-
case ConnectionType::OUTBOUND_FULL_RELAY:
|
|
975
|
-
case ConnectionType::BLOCK_RELAY:
|
|
976
|
-
case ConnectionType::ADDR_FETCH:
|
|
977
|
-
return true;
|
|
978
|
-
} // no default case, so the compiler can warn about missing cases
|
|
979
|
-
|
|
980
|
-
assert(false);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
964
|
std::string ConnectionTypeAsString() const { return ::ConnectionTypeAsString(m_conn_type); }
|
|
984
965
|
|
|
985
966
|
/**
|