PIVX Core  5.6.99
P2P Digital Currency
Namespaces | Functions
quorums_utils.cpp File Reference
#include "llmq/quorums_utils.h"
#include "bls/bls_wrapper.h"
#include "chainparams.h"
#include "hash.h"
#include "quorums.h"
#include "random.h"
#include "validation.h"
Include dependency graph for quorums_utils.cpp:

Go to the source code of this file.

Namespaces

 llmq
 
 llmq::utils
 

Functions

uint256 llmq::utils::BuildCommitmentHash (Consensus::LLMQType llmqType, const uint256 &blockHash, const std::vector< bool > &validMembers, const CBLSPublicKey &pubKey, const uint256 &vvecHash)
 
uint256 llmq::utils::BuildSignHash (Consensus::LLMQType llmqType, const uint256 &quorumHash, const uint256 &id, const uint256 &msgHash)
 
std::string llmq::utils::ToHexStr (const std::vector< bool > &vBits)
 
bool llmq::utils::IsQuorumActive (Consensus::LLMQType llmqType, const uint256 &quorumHash)
 
template<typename CacheType >
void llmq::utils::InitQuorumsCache (CacheType &cache)
 
template void llmq::utils::InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, bool, StaticSaltedHasher > > > (std::map< Consensus::LLMQType, unordered_lru_cache< uint256, bool, StaticSaltedHasher >> &cache)
 
template void llmq::utils::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 llmq::utils::InitQuorumsCache< std::map< Consensus::LLMQType, unordered_lru_cache< uint256, CQuorumCPtr, StaticSaltedHasher > > > (std::map< Consensus::LLMQType, unordered_lru_cache< uint256, CQuorumCPtr, StaticSaltedHasher >> &cache)