Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
quorums_blockprocessor.h
Go to the documentation of this file.
35 std::unordered_map<std::pair<Consensus::LLMQType, uint256>, bool, StaticSaltedHasher> hasMinedCommitmentCache;
42 void ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vRecv, CConnman& connman);
54 bool GetMinedCommitment(Consensus::LLMQType llmqType, const uint256& quorumHash, CFinalCommitment& ret, uint256& retMinedBlockHash);
56 std::vector<const CBlockIndex*> GetMinedCommitmentsUntilBlock(Consensus::LLMQType llmqType, const CBlockIndex* pindex, size_t maxCount);
57 std::map<Consensus::LLMQType, std::vector<const CBlockIndex*>> GetMinedAndActiveCommitmentsUntilBlock(const CBlockIndex* pindex);
60 bool GetCommitmentsFromBlock(const CBlock& block, const CBlockIndex* pindex, std::map<Consensus::LLMQType, CFinalCommitment>& ret, CValidationState& state);
61 bool ProcessCommitment(int nHeight, const uint256& blockHash, const CFinalCommitment& qc, CValidationState& state);
CQuorumBlockProcessor(CEvoDB &_evoDb)
Definition: quorums_blockprocessor.h:38
void AddMinableCommitment(const CFinalCommitment &fqc)
Definition: quorums_blockprocessor.cpp:487
Definition: quorums_commitment.h:24
CCriticalSection minableCommitmentsCs
Definition: quorums_blockprocessor.h:31
Definition: evodb.h:32
bool IsCommitmentRequired(Consensus::LLMQType llmqType, int nHeight)
Definition: quorums_blockprocessor.cpp:360
Definition: block.h:72
CQuorumBlockProcessor * quorumBlockProcessor
Definition: quorums_blockprocessor.cpp:23
bool GetMinableCommitmentTx(Consensus::LLMQType llmqType, int nHeight, CTransactionRef &ret)
Definition: quorums_blockprocessor.cpp:561
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
Definition: deterministicmns.h:26
bool ProcessBlock(const CBlock &block, const CBlockIndex *pindex, CValidationState &state)
Definition: quorums_blockprocessor.cpp:119
Definition: saltedhasher.h:64
bool HasMinedCommitment(Consensus::LLMQType llmqType, const uint256 &quorumHash)
Definition: quorums_blockprocessor.cpp:389
std::map< Consensus::LLMQType, std::vector< const CBlockIndex * > > GetMinedAndActiveCommitmentsUntilBlock(const CBlockIndex *pindex)
Definition: quorums_blockprocessor.cpp:465
void ProcessMessage(CNode *pfrom, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
Definition: quorums_blockprocessor.cpp:30
bool GetMinableCommitmentByHash(const uint256 &commitmentHash, CFinalCommitment &ret)
Definition: quorums_blockprocessor.cpp:519
bool HasMinableCommitment(const uint256 &hash)
Definition: quorums_blockprocessor.cpp:481
bool GetMinedCommitment(Consensus::LLMQType llmqType, const uint256 &quorumHash, CFinalCommitment &ret, uint256 &retMinedBlockHash)
Definition: quorums_blockprocessor.cpp:408
bool IsMiningPhase(Consensus::LLMQType llmqType, int nHeight)
Definition: quorums_blockprocessor.cpp:350
bool GetCommitmentsFromBlock(const CBlock &block, const CBlockIndex *pindex, std::map< Consensus::LLMQType, CFinalCommitment > &ret, CValidationState &state)
Definition: quorums_blockprocessor.cpp:317
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
bool UndoBlock(const CBlock &block, const CBlockIndex *pindex)
Definition: quorums_blockprocessor.cpp:240
std::map< std::pair< Consensus::LLMQType, uint256 >, uint256 > minableCommitmentsByQuorum
Definition: quorums_blockprocessor.h:32
std::unordered_map< std::pair< Consensus::LLMQType, uint256 >, bool, StaticSaltedHasher > hasMinedCommitmentCache
Definition: quorums_blockprocessor.h:35
bool GetMinableCommitment(Consensus::LLMQType llmqType, int nHeight, CFinalCommitment &ret)
Definition: quorums_blockprocessor.cpp:532
std::vector< const CBlockIndex * > GetMinedCommitmentsUntilBlock(Consensus::LLMQType llmqType, const CBlockIndex *pindex, size_t maxCount)
Definition: quorums_blockprocessor.cpp:421
Wrapped mutex: supports recursive locking, but no waiting TODO: We should move away from using the re...
Definition: sync.h:94
std::map< uint256, CFinalCommitment > minableCommitments
Definition: quorums_blockprocessor.h:33
uint256 GetQuorumBlockHash(Consensus::LLMQType llmqType, int nHeight)
Definition: quorums_blockprocessor.cpp:375
bool ProcessCommitment(int nHeight, const uint256 &blockHash, const CFinalCommitment &qc, CValidationState &state)
Definition: quorums_blockprocessor.cpp:183