Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

llmq::CLLMQUtils Class Reference

#include <quorums_utils.h>

Static Public Member Functions

static std::vector< CDeterministicMNCPtrGetAllQuorumMembers (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum)
 
static uint256 BuildCommitmentHash (Consensus::LLMQType llmqType, const uint256 &blockHash, const std::vector< bool > &validMembers, const CBLSPublicKey &pubKey, const uint256 &vvecHash)
 
static uint256 BuildSignHash (Consensus::LLMQType llmqType, const uint256 &quorumHash, const uint256 &id, const uint256 &msgHash)
 
template<typename T >
static uint256 BuildSignHash (const T &s)
 
static bool IsAllMembersConnectedEnabled (Consensus::LLMQType llmqType)
 
static uint256 DeterministicOutboundConnection (const uint256 &proTxHash1, const uint256 &proTxHash2)
 
static std::set< uint256GetQuorumConnections (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &forMember, bool onlyOutbound)
 
static std::set< uint256GetQuorumRelayMembers (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &forMember, bool onlyOutbound)
 
static std::set< size_t > CalcDeterministicWatchConnections (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, size_t memberCount, size_t connectionCount)
 
static void EnsureQuorumConnections (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &myProTxHash, bool allowWatch)
 
static void AddQuorumProbeConnections (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &myProTxHash)
 
static bool IsQuorumActive (Consensus::LLMQType llmqType, const uint256 &quorumHash)
 
template<typename NodesContainer , typename Continue , typename Callback >
static void IterateNodesRandom (NodesContainer &nodeStates, Continue &&cont, Callback &&callback, FastRandomContext &rnd)
 
static std::string ToHexStr (const std::vector< bool > &vBits)
 

Detailed Description

Definition at line 18 of file quorums_utils.h.

Member Function Documentation

◆ AddQuorumProbeConnections()

◆ BuildCommitmentHash()

uint256 llmq::CLLMQUtils::BuildCommitmentHash ( Consensus::LLMQType  llmqType,
const uint256 blockHash,
const std::vector< bool > &  validMembers,
const CBLSPublicKey pubKey,
const uint256 vvecHash 
)
static

◆ BuildSignHash() [1/2]

◆ BuildSignHash() [2/2]

template<typename T >
static uint256 llmq::CLLMQUtils::BuildSignHash ( const T &  s)
inlinestatic

Definition at line 29 of file quorums_utils.h.

References BuildSignHash().

◆ CalcDeterministicWatchConnections()

std::set< size_t > llmq::CLLMQUtils::CalcDeterministicWatchConnections ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
size_t  memberCount,
size_t  connectionCount 
)
static

◆ DeterministicOutboundConnection()

uint256 llmq::CLLMQUtils::DeterministicOutboundConnection ( const uint256 proTxHash1,
const uint256 proTxHash2 
)
static

Definition at line 59 of file quorums_utils.cpp.

References SerializeHash().

Referenced by GetQuorumConnections().

◆ EnsureQuorumConnections()

◆ GetAllQuorumMembers()

◆ GetQuorumConnections()

std::set< uint256 > llmq::CLLMQUtils::GetQuorumConnections ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const uint256 forMember,
bool  onlyOutbound 
)
static

◆ GetQuorumRelayMembers()

std::set< uint256 > llmq::CLLMQUtils::GetQuorumRelayMembers ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const uint256 forMember,
bool  onlyOutbound 
)
static

Definition at line 107 of file quorums_utils.cpp.

References GetAllQuorumMembers().

Referenced by GetQuorumConnections(), and llmq::CDKGSession::Init().

◆ IsAllMembersConnectedEnabled()

◆ IsQuorumActive()

◆ IterateNodesRandom()

template<typename NodesContainer , typename Continue , typename Callback >
static void llmq::CLLMQUtils::IterateNodesRandom ( NodesContainer &  nodeStates,
Continue &&  cont,
Callback &&  callback,
FastRandomContext rnd 
)
inlinestatic

◆ ToHexStr()

static std::string llmq::CLLMQUtils::ToHexStr ( const std::vector< bool > &  vBits)
inlinestatic

Definition at line 74 of file quorums_utils.h.

References HexStr().

Referenced by llmq::CFinalCommitment::ToJson().


The documentation for this class was generated from the following files:
Released under the MIT license