You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (dsq.masternodeOutpoint.IsNull() && dsq.m_protxHash.IsNull()) {
115
-
peerman.Misbehaving(peer.GetId(), 100);
116
-
return;
117
+
return tl::unexpected{100};
117
118
}
118
119
119
120
if (dsq.masternodeOutpoint.IsNull()) {
120
121
auto mnList = deterministicMNManager->GetListAtChainTip();
121
122
if (auto dmn = mnList.GetValidMN(dsq.m_protxHash)) {
122
123
dsq.masternodeOutpoint = dmn->collateralOutpoint;
123
124
} else {
124
-
peerman.Misbehaving(peer.GetId(), 10);
125
-
return;
125
+
return tl::unexpected{10};
126
126
}
127
127
}
128
128
129
129
{
130
130
TRY_LOCK(cs_vecqueue, lockRecv);
131
-
if (!lockRecv) return;
131
+
if (!lockRecv) return {};
132
132
133
133
// process every dsq only once
134
134
for (constauto& q : vecCoinJoinQueue) {
135
135
if (q == dsq) {
136
-
return;
136
+
return {};
137
137
}
138
138
if (q.fReady == dsq.fReady && q.masternodeOutpoint == dsq.masternodeOutpoint) {
139
139
// no way the same mn can send another dsq with the same readiness this soon
140
140
LogPrint(BCLog::COINJOIN, "DSQUEUE -- Peer %s is sending WAY too many dsq messages for a masternode with collateral %s\n", peer.GetLogString(), dsq.masternodeOutpoint.ToStringShort());
0 commit comments