mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
style: run clang-format
This commit is contained in:
parent
567d629e42
commit
859b9ad28f
@ -114,17 +114,13 @@ struct LLMQParams {
|
|||||||
// How many members should we try to send all sigShares to before we give up.
|
// How many members should we try to send all sigShares to before we give up.
|
||||||
int recoveryMembers;
|
int recoveryMembers;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
[[nodiscard]] constexpr int max_cycles(int quorums_count) const
|
[[nodiscard]] constexpr int max_cycles(int quorums_count) const
|
||||||
{
|
{
|
||||||
return useRotation ? quorums_count / signingActiveQuorumCount : quorums_count;
|
return useRotation ? quorums_count / signingActiveQuorumCount : quorums_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For how many blocks recent DKG info should be kept
|
// For how many blocks recent DKG info should be kept
|
||||||
[[nodiscard]] constexpr int max_store_depth() const
|
[[nodiscard]] constexpr int max_store_depth() const { return max_cycles(keepOldKeys) * dkgInterval; }
|
||||||
{
|
|
||||||
return max_cycles(keepOldKeys) * dkgInterval;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//static_assert(std::is_trivial_v<Consensus::LLMQParams>, "LLMQParams is not a trivial type");
|
//static_assert(std::is_trivial_v<Consensus::LLMQParams>, "LLMQParams is not a trivial type");
|
||||||
|
Loading…
Reference in New Issue
Block a user