Skip to content

Commit

Permalink
Clarify few things
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 30, 2022
1 parent 678df63 commit f40ff17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2806,9 +2806,10 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
connman->PushMessage(pfrom, msgMaker.Make(NetMsgType::SENDCMPCT, fAnnounceUsingCMPCTBLOCK, nCMPCTBLOCKVersion));
}

// Tell our peer that he should send us CoinJoin queue messages
if (!fBlocksOnly) {
// Tell our peer that he should send us CoinJoin queue messages
connman->PushMessage(pfrom, msgMaker.Make(NetMsgType::SENDDSQUEUE, true));
// Tell our peer that he should send us intra-quorum messages
if (llmq::CLLMQUtils::IsWatchQuorumsEnabled() && !pfrom->m_masternode_connection) {
connman->PushMessage(pfrom, msgMaker.Make(NetMsgType::QWATCH));
}
Expand Down
6 changes: 6 additions & 0 deletions src/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ const static std::string allNetMessageTypes[] = {
NetMsgType::HEADERS2};
const static std::vector<std::string> allNetMessageTypesVec(allNetMessageTypes, allNetMessageTypes+ARRAYLEN(allNetMessageTypes));

/** Message types that are not allowed by blocks-relay-only policy.
* We do not want most of CoinJoin, DKG or LLMQ signing messages to be relayed
* to/from nodes via connections that were established in this mode.
* Make sure to keep this list up to date whenever a new message type is added.
* NOTE: Unlike the list above, this list is sorted alphabetically.
*/
const static std::string netMessageTypesViolateBlocksOnly[] = {
NetMsgType::DSACCEPT,
NetMsgType::DSCOMPLETE,
Expand Down

0 comments on commit f40ff17

Please sign in to comment.