Fix build: nMisbehavior is protected
Build All Platforms / build-windows-qt (push) Waiting to run
Build All Platforms / build-windows-daemon (push) Waiting to run
Build All Platforms / build-linux-qt (push) Waiting to run
Build All Platforms / build-linux-daemon (push) Waiting to run
Build All Platforms / build-macos (push) Waiting to run
Build All Platforms / release (push) Blocked by required conditions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 21:09:48 -07:00
parent 8953173403
commit b50eecc56f
+2 -2
View File
@@ -3764,8 +3764,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
} }
if (block.nDoS) { if (block.nDoS) {
printf("IBD-DIAG: Misbehaving peer %s by %d (total=%d)\n", printf("IBD-DIAG: Misbehaving peer %s by %d\n",
pfrom->addr.ToString().c_str(), block.nDoS, pfrom->nMisbehavior + block.nDoS); pfrom->addr.ToString().c_str(), block.nDoS);
pfrom->Misbehaving(block.nDoS); pfrom->Misbehaving(block.nDoS);
} }