-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: return removed code for m_dsq to relay Dsq queue #7227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3643,6 +3643,9 @@ void PeerManagerImpl::PostProcessMessage(MessageProcessingResult&& result, NodeI | |||||||||||||||
| for (const auto& inv : result.m_inventory) { | ||||||||||||||||
| RelayInv(inv); | ||||||||||||||||
| } | ||||||||||||||||
| for (const auto& dsq : result.m_dsq) { | ||||||||||||||||
| RelayDSQ(dsq); | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
+3646
to
+3648
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💬 Nitpick: A comment noting the sole caller would help prevent re-deletion Since the server side now calls
Suggested change
source: ['claude'] |
||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| MessageProcessingResult PeerManagerImpl::ProcessPlatformBanMessage(NodeId node, std::string_view msg_type, CDataStream& vRecv) | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: No test covers the client-side m_dsq relay path, risking repeat regression
The DSQUEUE →
m_dsq.push_back()→PostProcessMessage→RelayDSQflow has no unit or functional test coverage. This exact path was silently broken by #7070 without any test catching it. A regression test exercisingCCoinJoinClientQueueManager::ProcessMessageand verifying thatresult.m_dsqis non-empty (or thatRelayDSQis called) would prevent this from recurring. Neithersrc/test/nortest/functional/referencem_dsq,DSQUEUE, orRelayDSQ.source: ['claude', 'codex']
🤖 Fix this with AI agents