Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <quorums_dkgsessionmgr.h>

+ Collaboration diagram for llmq::CDKGSessionManager:

Classes

struct  ContributionsCacheEntry
 
struct  ContributionsCacheKey
 

Public Member Functions

 CDKGSessionManager (CDBWrapper &_llmqDb, CBLSWorker &_blsWorker)
 
 ~CDKGSessionManager ()
 
void StartThreads ()
 
void StopThreads ()
 
void UpdatedBlockTip (const CBlockIndex *pindexNew, bool fInitialDownload)
 
void ProcessMessage (CNode *pfrom, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
 
bool AlreadyHave (const CInv &inv) const
 
bool GetContribution (const uint256 &hash, CDKGContribution &ret) const
 
bool GetComplaint (const uint256 &hash, CDKGComplaint &ret) const
 
bool GetJustification (const uint256 &hash, CDKGJustification &ret) const
 
bool GetPrematureCommitment (const uint256 &hash, CDKGPrematureCommitment &ret) const
 
void WriteVerifiedVvecContribution (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const BLSVerificationVectorPtr &vvec)
 
void WriteVerifiedSkContribution (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const CBLSSecretKey &skContribution)
 
bool GetVerifiedContributions (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const std::vector< bool > &validMembers, std::vector< uint16_t > &memberIndexesRet, std::vector< BLSVerificationVectorPtr > &vvecsRet, BLSSecretKeyVector &skContributionsRet)
 
bool GetVerifiedContribution (Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, BLSVerificationVectorPtr &vvecRet, CBLSSecretKey &skContributionRet)
 

Private Member Functions

void CleanupCache ()
 

Private Attributes

CDBWrapperllmqDb
 
CBLSWorkerblsWorker
 
std::map< Consensus::LLMQType, CDKGSessionHandlerdkgSessionHandlers
 
CCriticalSection contributionsCacheCs
 
std::map< ContributionsCacheKey, ContributionsCacheEntrycontributionsCache
 

Static Private Attributes

static const int64_t MAX_CONTRIBUTION_CACHE_TIME = 60 * 1000
 

Detailed Description

Definition at line 19 of file quorums_dkgsessionmgr.h.

Constructor & Destructor Documentation

◆ CDKGSessionManager()

llmq::CDKGSessionManager::CDKGSessionManager ( CDBWrapper _llmqDb,
CBLSWorker _blsWorker 
)

Definition at line 24 of file quorums_dkgsessionmgr.cpp.

References blsWorker, dkgSessionHandlers, and Params().

◆ ~CDKGSessionManager()

llmq::CDKGSessionManager::~CDKGSessionManager ( )

Definition at line 35 of file quorums_dkgsessionmgr.cpp.

Member Function Documentation

◆ AlreadyHave()

bool llmq::CDKGSessionManager::AlreadyHave ( const CInv inv) const

◆ CleanupCache()

void llmq::CDKGSessionManager::CleanupCache ( )
private

◆ GetComplaint()

bool llmq::CDKGSessionManager::GetComplaint ( const uint256 hash,
CDKGComplaint ret 
) const

◆ GetContribution()

bool llmq::CDKGSessionManager::GetContribution ( const uint256 hash,
CDKGContribution ret 
) const

◆ GetJustification()

bool llmq::CDKGSessionManager::GetJustification ( const uint256 hash,
CDKGJustification ret 
) const

◆ GetPrematureCommitment()

bool llmq::CDKGSessionManager::GetPrematureCommitment ( const uint256 hash,
CDKGPrematureCommitment ret 
) const

◆ GetVerifiedContribution()

bool llmq::CDKGSessionManager::GetVerifiedContribution ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const uint256 proTxHash,
BLSVerificationVectorPtr vvecRet,
CBLSSecretKey skContributionRet 
)

◆ GetVerifiedContributions()

bool llmq::CDKGSessionManager::GetVerifiedContributions ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const std::vector< bool > &  validMembers,
std::vector< uint16_t > &  memberIndexesRet,
std::vector< BLSVerificationVectorPtr > &  vvecsRet,
BLSSecretKeyVector skContributionsRet 
)

◆ ProcessMessage()

◆ StartThreads()

void llmq::CDKGSessionManager::StartThreads ( )

Definition at line 39 of file quorums_dkgsessionmgr.cpp.

References dkgSessionHandlers.

Referenced by llmq::StartLLMQSystem().

◆ StopThreads()

void llmq::CDKGSessionManager::StopThreads ( )

Definition at line 46 of file quorums_dkgsessionmgr.cpp.

References dkgSessionHandlers.

Referenced by llmq::StopLLMQSystem().

◆ UpdatedBlockTip()

void llmq::CDKGSessionManager::UpdatedBlockTip ( const CBlockIndex pindexNew,
bool  fInitialDownload 
)

◆ WriteVerifiedSkContribution()

void llmq::CDKGSessionManager::WriteVerifiedSkContribution ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const uint256 proTxHash,
const CBLSSecretKey skContribution 
)

◆ WriteVerifiedVvecContribution()

void llmq::CDKGSessionManager::WriteVerifiedVvecContribution ( Consensus::LLMQType  llmqType,
const CBlockIndex pindexQuorum,
const uint256 proTxHash,
const BLSVerificationVectorPtr vvec 
)

Member Data Documentation

◆ blsWorker

CBLSWorker& llmq::CDKGSessionManager::blsWorker
private

Definition at line 25 of file quorums_dkgsessionmgr.h.

Referenced by CDKGSessionManager().

◆ contributionsCache

std::map<ContributionsCacheKey, ContributionsCacheEntry> llmq::CDKGSessionManager::contributionsCache
private

Definition at line 46 of file quorums_dkgsessionmgr.h.

Referenced by CleanupCache(), and GetVerifiedContribution().

◆ contributionsCacheCs

CCriticalSection llmq::CDKGSessionManager::contributionsCacheCs
private

Definition at line 29 of file quorums_dkgsessionmgr.h.

Referenced by CleanupCache(), and GetVerifiedContribution().

◆ dkgSessionHandlers

◆ llmqDb

CDBWrapper& llmq::CDKGSessionManager::llmqDb
private

◆ MAX_CONTRIBUTION_CACHE_TIME

const int64_t llmq::CDKGSessionManager::MAX_CONTRIBUTION_CACHE_TIME = 60 * 1000
staticprivate

Definition at line 21 of file quorums_dkgsessionmgr.h.

Referenced by CleanupCache().


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