PIVX Core  5.6.99
P2P Digital Currency
Functions
llmq::utils Namespace Reference

Functions

uint256 BuildCommitmentHash (Consensus::LLMQType llmqType, const uint256 &blockHash, const std::vector< bool > &validMembers, const CBLSPublicKey &pubKey, const uint256 &vvecHash)
 
uint256 BuildSignHash (Consensus::LLMQType llmqType, const uint256 &quorumHash, const uint256 &id, const uint256 &msgHash)
 
std::string ToHexStr (const std::vector< bool > &vBits)
 
bool IsQuorumActive (Consensus::LLMQType llmqType, const uint256 &quorumHash)
 
template<typename CacheType >
void InitQuorumsCache (CacheType &cache)
 
template void InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, bool, StaticSaltedHasher > > > (std::map< Consensus::LLMQType, unordered_lru_cache< uint256, bool, StaticSaltedHasher >> &cache)
 
template void InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, std::vector< CQuorumCPtr >, StaticSaltedHasher > > > (std::map< Consensus::LLMQType, unordered_lru_cache< uint256, std::vector< CQuorumCPtr >, StaticSaltedHasher >> &cache)
 
template void InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, CQuorumCPtr, StaticSaltedHasher > > > (std::map< Consensus::LLMQType, unordered_lru_cache< uint256, CQuorumCPtr, StaticSaltedHasher >> &cache)
 
template<typename T >
uint256 BuildSignHash (const T &s)
 

Function Documentation

◆ BuildCommitmentHash()

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

Definition at line 21 of file quorums_utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildSignHash() [1/2]

uint256 llmq::utils::BuildSignHash ( Consensus::LLMQType  llmqType,
const uint256 quorumHash,
const uint256 id,
const uint256 msgHash 
)

Definition at line 32 of file quorums_utils.cpp.

Here is the caller graph for this function:

◆ BuildSignHash() [2/2]

template<typename T >
uint256 llmq::utils::BuildSignHash ( const T s)

Definition at line 25 of file quorums_utils.h.

Here is the call graph for this function:

◆ InitQuorumsCache()

template<typename CacheType >
void llmq::utils::InitQuorumsCache ( CacheType &  cache)

Definition at line 69 of file quorums_utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, bool, StaticSaltedHasher > > >()

◆ InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, CQuorumCPtr, StaticSaltedHasher > > >()

◆ InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, std::vector< CQuorumCPtr >, StaticSaltedHasher > > >()

◆ IsQuorumActive()

bool llmq::utils::IsQuorumActive ( Consensus::LLMQType  llmqType,
const uint256 quorumHash 
)

Definition at line 51 of file quorums_utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToHexStr()

std::string llmq::utils::ToHexStr ( const std::vector< bool > &  vBits)

Definition at line 42 of file quorums_utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: