Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
masternode-meta.cpp
Go to the documentation of this file.
11 const std::string CMasternodeMetaMan::SERIALIZATION_VERSION_STRING = "CMasternodeMetaMan-Version-2";
59 // We keep track of dsq (mixing queues) count to avoid using same masternodes for mixing too often.
60 // This threshold is calculated as the last dsq count this specific masternode was used in a mixing
61 // session plus a margin of 20% of masternode count. In other words we expect at least 20% of unique
62 // masternodes before we ever see a masternode that we know already mixed someone's funds ealier.
93 bool CMasternodeMetaMan::AddGovernanceVote(const uint256& proTxHash, const uint256& nGovernanceObjectHash)
void DisallowMixing(const uint256 &proTxHash)
Definition: masternode-meta.cpp:84
int64_t GetDsqThreshold(const uint256 &proTxHash, int nMnCount)
Definition: masternode-meta.cpp:63
static const std::string SERIALIZATION_VERSION_STRING
Definition: masternode-meta.h:91
Definition: univalue.h:20
std::map< uint256, int > mapGovernanceObjectsVotedOn
Definition: masternode-meta.h:36
void RemoveGovernanceObject(const uint256 &nGovernanceObjectHash)
Definition: masternode-meta.cpp:38
std::vector< uint256 > GetAndClearDirtyGovernanceObjectHashes()
Definition: masternode-meta.cpp:109
Definition: univalue.h:22
void AddGovernanceVote(const uint256 &nGovernanceObjectHash)
Definition: masternode-meta.cpp:29
std::shared_ptr< CMasternodeMetaInfo > CMasternodeMetaInfoPtr
Definition: masternode-meta.h:86
static std::pair< std::string, UniValue > Pair(const char *cKey, const char *cVal)
Definition: univalue.h:185
std::map< uint256, CMasternodeMetaInfoPtr > metaInfos
Definition: masternode-meta.h:95
void AllowMixing(const uint256 &proTxHash)
Definition: masternode-meta.cpp:74
Definition: masternode-meta.h:88
std::vector< uint256 > vecDirtyGovernanceObjectHashes
Definition: masternode-meta.h:96
bool AddGovernanceVote(const uint256 &proTxHash, const uint256 &nGovernanceObjectHash)
Definition: masternode-meta.cpp:93
CMasternodeMetaInfoPtr GetMetaInfo(const uint256 &proTxHash, bool fCreate=true)
Definition: masternode-meta.cpp:45
void RemoveGovernanceObject(const uint256 &nGovernanceObjectHash)
Definition: masternode-meta.cpp:101