Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
quorums_dkgsessionmgr.h
Go to the documentation of this file.
57 void ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vRecv, CConnman& connman);
65 void WriteVerifiedVvecContribution(Consensus::LLMQType llmqType, const CBlockIndex* pindexQuorum, const uint256& proTxHash, const BLSVerificationVectorPtr& vvec);
66 void WriteVerifiedSkContribution(Consensus::LLMQType llmqType, const CBlockIndex* pindexQuorum, const uint256& proTxHash, const CBLSSecretKey& skContribution);
67 bool GetVerifiedContributions(Consensus::LLMQType llmqType, const CBlockIndex* pindexQuorum, const std::vector<bool>& validMembers, std::vector<uint16_t>& memberIndexesRet, std::vector<BLSVerificationVectorPtr>& vvecsRet, BLSSecretKeyVector& skContributionsRet);
68 bool GetVerifiedContribution(Consensus::LLMQType llmqType, const CBlockIndex* pindexQuorum, const uint256& proTxHash, BLSVerificationVectorPtr& vvecRet, CBLSSecretKey& skContributionRet);
uint256 quorumHash
Definition: quorums_dkgsessionmgr.h:32
CCriticalSection contributionsCacheCs
Definition: quorums_dkgsessionmgr.h:29
std::map< Consensus::LLMQType, CDKGSessionHandler > dkgSessionHandlers
Definition: quorums_dkgsessionmgr.h:27
Definition: bls.h:238
static const int64_t MAX_CONTRIBUTION_CACHE_TIME
Definition: quorums_dkgsessionmgr.h:21
void WriteVerifiedSkContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const CBLSSecretKey &skContribution)
Definition: quorums_dkgsessionmgr.cpp:208
CDKGSessionManager * quorumDKGSessionManager
Definition: quorums_dkgsessionmgr.cpp:19
Definition: bls_worker.h:21
Definition: dbwrapper.h:197
Definition: univalue.h:20
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
Definition: deterministicmns.h:26
bool operator<(const ContributionsCacheKey &r) const
Definition: quorums_dkgsessionmgr.h:34
bool GetVerifiedContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, BLSVerificationVectorPtr &vvecRet, CBLSSecretKey &skContributionRet)
Definition: quorums_dkgsessionmgr.cpp:239
bool GetVerifiedContributions(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const std::vector< bool > &validMembers, std::vector< uint16_t > &memberIndexesRet, std::vector< BLSVerificationVectorPtr > &vvecsRet, BLSSecretKeyVector &skContributionsRet)
Definition: quorums_dkgsessionmgr.cpp:213
std::shared_ptr< BLSVerificationVector > BLSVerificationVectorPtr
Definition: bls.h:471
void ProcessMessage(CNode *pfrom, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
Definition: quorums_dkgsessionmgr.cpp:71
bool GetJustification(const uint256 &hash, CDKGJustification &ret) const
Definition: quorums_dkgsessionmgr.cpp:163
bool GetContribution(const uint256 &hash, CDKGContribution &ret) const
Definition: quorums_dkgsessionmgr.cpp:123
Consensus::LLMQType llmqType
Definition: quorums_dkgsessionmgr.h:31
Definition: quorums_dkgsession.h:123
~CDKGSessionManager()
Definition: quorums_dkgsessionmgr.cpp:35
Definition: quorums_dkgsession.h:36
bool GetPrematureCommitment(const uint256 &hash, CDKGPrematureCommitment &ret) const
Definition: quorums_dkgsessionmgr.cpp:183
void WriteVerifiedVvecContribution(Consensus::LLMQType llmqType, const CBlockIndex *pindexQuorum, const uint256 &proTxHash, const BLSVerificationVectorPtr &vvec)
Definition: quorums_dkgsessionmgr.cpp:203
void UpdatedBlockTip(const CBlockIndex *pindexNew, bool fInitialDownload)
Definition: quorums_dkgsessionmgr.cpp:53
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
CBLSSecretKey skContribution
Definition: quorums_dkgsessionmgr.h:44
Definition: quorums_dkgsession.h:88
BLSVerificationVectorPtr vvec
Definition: quorums_dkgsessionmgr.h:43
int64_t entryTime
Definition: quorums_dkgsessionmgr.h:42
CDKGSessionManager(CDBWrapper &_llmqDb, CBLSWorker &_blsWorker)
Definition: quorums_dkgsessionmgr.cpp:24
std::map< ContributionsCacheKey, ContributionsCacheEntry > contributionsCache
Definition: quorums_dkgsessionmgr.h:46
uint256 proTxHash
Definition: quorums_dkgsessionmgr.h:33
bool GetComplaint(const uint256 &hash, CDKGComplaint &ret) const
Definition: quorums_dkgsessionmgr.cpp:143
bool AlreadyHave(const CInv &inv) const
Definition: quorums_dkgsessionmgr.cpp:106
Wrapped mutex: supports recursive locking, but no waiting TODO: We should move away from using the re...
Definition: sync.h:94