Skip to content

Commit

Permalink
Handle review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jan 9, 2019
1 parent 352edbd commit e1901d2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/batchedlogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class CBatchedLogger
void Flush();
};

#endif//DASH_BATCHEDLOGGER_H
#endif//DASH_BATCHEDLOGGER_H
16 changes: 16 additions & 0 deletions src/consensus/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,27 @@ struct LLMQParams {
// should at the same time not be too large so that not too much space is wasted with null commitments in case a DKG
// session failed.
int dkgMiningWindowEnd;

// Each member will sleep for a random time between 0 and dkgRndSleepTime milliseconds. The purpose of this is to
// avoid overloading the network due to all members sending out expensive-to-verify DKG messages at once
int dkgRndSleepTime;

// In the complaint phase, members will vote on other members being bad (missing valid contribution). If at least
// dkgBadVotesThreshold have voted for another member to be bad, it will considered to be bad by all other members
// as well. This serves as a protection against late-comers who send their contribution on the bring of
// phase-transition, which would otherwise result in inconsistent views of the valid members set
int dkgBadVotesThreshold;

// Used for inter-quorum communication. This is the number of deterministic connections built to the clockwise
// neighbors on the circle shaped nodes topography
int neighborConnections;

// Used for inter-quorum communication. This is the number of deterministic connections built diagonally to the
// member on the circle shaped nodes topography.
int diagonalConnections;

// Used for inter-quorum communication. This is the number of quorums for which we should keep old connections. This
// should be at least as much as the active quorums set.
int keepOldConnections;
};

Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ UniValue CDKGDebugSessionStatus::ToJson(int detailLevel) const
v.arr.push_back((int)idx);
} else if (detailLevel == 2) {
UniValue a(UniValue::VOBJ);
a.push_back(Pair("memberIndex", idx));
a.push_back(Pair("memberIndex", (int)idx));
if (idx < dmnMembers.size()) {
a.push_back(Pair("proTxHash", dmnMembers[idx]->proTxHash.ToString()));
}
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CDKGDebugMemberStatus
uint16_t statusBitset;
};

std::set<size_t> complaintsFromMembers;
std::set<uint16_t> complaintsFromMembers;

public:
CDKGDebugMemberStatus() : statusBitset(0) {}
Expand Down

0 comments on commit e1901d2

Please sign in to comment.