Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 7: [PATCH 07/68] build: adapt Roots maintenance and assurance to Core 30.3

src/net.h

Before: src/net.h · After: src/net.h

File metadata
index 541ca3d6097bbd50ae5df67fa3667acb2c2edbb3..90246c9699ccdd836a778ffe06639de01f75a7db 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
@@ -963,25 +963,6 @@ public:
963
963
 
964
964
  void CopyStats(CNodeStats& stats) EXCLUSIVE_LOCKS_REQUIRED(!m_subver_mutex, !m_addr_local_mutex, !cs_vSend, !cs_vRecv);
965
965
 
966
- bool PunishInvalidBlocks() const
967
- {
968
- if (HasPermission(NetPermissionFlags::NoBan)) {
969
- return false;
970
- }
971
- switch (m_conn_type) {
972
- case ConnectionType::INBOUND:
973
- case ConnectionType::MANUAL:
974
- case ConnectionType::FEELER:
975
- return false;
976
- case ConnectionType::OUTBOUND_FULL_RELAY:
977
- case ConnectionType::BLOCK_RELAY:
978
- case ConnectionType::ADDR_FETCH:
979
- return true;
980
- } // no default case, so the compiler can warn about missing cases
981
-
982
- assert(false);
983
- }
984
-
985
966
  std::string ConnectionTypeAsString() const { return ::ConnectionTypeAsString(m_conn_type); }
986
967
 
987
968
  /**