fix: remove cs_main from MaybePunishNodeForTx, missing changes from #19607#7332
fix: remove cs_main from MaybePunishNodeForTx, missing changes from #19607#7332knst wants to merge 1 commit into
Conversation
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis pull request removes a scoped Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Small, correct cleanup completing the bitcoin#19607 backport. Removes a stale LOCK(cs_main) around Misbehaving(nodeid, 100) in MaybePunishNodeForTx. Misbehaving() is internally guarded by peer->m_misbehavior_mutex and does not require cs_main; the sibling MaybePunishNodeForBlock already calls it the same way. Both reviewers (Claude and Codex, plus backport specialists) independently reached the same conclusion with no findings.
Issue being fixed or feature implemented
Helper MaybePunishNodeForTx has been introduced when bitcoin#19607 is done, it caused missing changes.
What was done?
Removed cs_main from MaybePunishNodeForTx
How Has This Been Tested?
N/A
Breaking Changes
N/A
Checklist: