mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
[doc] Fix doxygen comments for members
This commit is contained in:
parent
30c2dd8d05
commit
fada0c422c
@ -71,6 +71,12 @@ To describe a member or variable use:
|
|||||||
int var; //!< Detailed description after the member
|
int var; //!< Detailed description after the member
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
```cpp
|
||||||
|
//! Description before the member
|
||||||
|
int var;
|
||||||
|
```
|
||||||
|
|
||||||
Also OK:
|
Also OK:
|
||||||
```c++
|
```c++
|
||||||
///
|
///
|
||||||
|
@ -266,8 +266,8 @@ public:
|
|||||||
assert(consensus.hashGenesisBlock == uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"));
|
assert(consensus.hashGenesisBlock == uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"));
|
||||||
assert(genesis.hashMerkleRoot == uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"));
|
assert(genesis.hashMerkleRoot == uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"));
|
||||||
|
|
||||||
vFixedSeeds.clear(); //! Regtest mode doesn't have any fixed seeds.
|
vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.
|
||||||
vSeeds.clear(); //! Regtest mode doesn't have any DNS seeds.
|
vSeeds.clear(); //!< Regtest mode doesn't have any DNS seeds.
|
||||||
|
|
||||||
fMiningRequiresPeers = false;
|
fMiningRequiresPeers = false;
|
||||||
fDefaultConsistencyChecks = true;
|
fDefaultConsistencyChecks = true;
|
||||||
|
@ -194,10 +194,10 @@ namespace {
|
|||||||
/** Blocks that are in flight, and that are in the queue to be downloaded. Protected by cs_main. */
|
/** Blocks that are in flight, and that are in the queue to be downloaded. Protected by cs_main. */
|
||||||
struct QueuedBlock {
|
struct QueuedBlock {
|
||||||
uint256 hash;
|
uint256 hash;
|
||||||
CBlockIndex *pindex; //! Optional.
|
CBlockIndex* pindex; //!< Optional.
|
||||||
int64_t nTime; //! Time of "getdata" request in microseconds.
|
int64_t nTime; //!< Time of "getdata" request in microseconds.
|
||||||
bool fValidatedHeaders; //! Whether this block has validated headers at the time of request.
|
bool fValidatedHeaders; //!< Whether this block has validated headers at the time of request.
|
||||||
int64_t nTimeDisconnect; //! The timeout for this block request (for disconnecting a slow peer)
|
int64_t nTimeDisconnect; //!< The timeout for this block request (for disconnecting a slow peer)
|
||||||
};
|
};
|
||||||
map<uint256, pair<NodeId, list<QueuedBlock>::iterator> > mapBlocksInFlight;
|
map<uint256, pair<NodeId, list<QueuedBlock>::iterator> > mapBlocksInFlight;
|
||||||
|
|
||||||
|
14
src/main.h
14
src/main.h
@ -469,13 +469,13 @@ bool TestBlockValidity(CValidationState& state, const CChainParams& chainparams,
|
|||||||
class CBlockFileInfo
|
class CBlockFileInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
unsigned int nBlocks; //! number of blocks stored in file
|
unsigned int nBlocks; //!< number of blocks stored in file
|
||||||
unsigned int nSize; //! number of used bytes of block file
|
unsigned int nSize; //!< number of used bytes of block file
|
||||||
unsigned int nUndoSize; //! number of used bytes in the undo file
|
unsigned int nUndoSize; //!< number of used bytes in the undo file
|
||||||
unsigned int nHeightFirst; //! lowest height of block in file
|
unsigned int nHeightFirst; //!< lowest height of block in file
|
||||||
unsigned int nHeightLast; //! highest height of block in file
|
unsigned int nHeightLast; //!< highest height of block in file
|
||||||
uint64_t nTimeFirst; //! earliest time of block in file
|
uint64_t nTimeFirst; //!< earliest time of block in file
|
||||||
uint64_t nTimeLast; //! latest time of block in file
|
uint64_t nTimeLast; //!< latest time of block in file
|
||||||
|
|
||||||
ADD_SERIALIZE_METHODS;
|
ADD_SERIALIZE_METHODS;
|
||||||
|
|
||||||
|
@ -265,8 +265,8 @@ public:
|
|||||||
void Read(CAutoFile& filein);
|
void Read(CAutoFile& filein);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CFeeRate minTrackedFee; //! Passed to constructor to avoid dependency on main
|
CFeeRate minTrackedFee; //!< Passed to constructor to avoid dependency on main
|
||||||
double minTrackedPriority; //! Set to AllowFreeThreshold
|
double minTrackedPriority; //!< Set to AllowFreeThreshold
|
||||||
unsigned int nBestSeenHeight;
|
unsigned int nBestSeenHeight;
|
||||||
struct TxStatsInfo
|
struct TxStatsInfo
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,8 @@ using namespace std;
|
|||||||
class CRPCConvertParam
|
class CRPCConvertParam
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string methodName; //! method whose params want conversion
|
std::string methodName; //!< method whose params want conversion
|
||||||
int paramIdx; //! 0-based idx of param to convert
|
int paramIdx; //!< 0-based idx of param to convert
|
||||||
};
|
};
|
||||||
|
|
||||||
static const CRPCConvertParam vRPCConvertParams[] =
|
static const CRPCConvertParam vRPCConvertParams[] =
|
||||||
|
@ -1015,12 +1015,12 @@ namespace {
|
|||||||
*/
|
*/
|
||||||
class CTransactionSignatureSerializer {
|
class CTransactionSignatureSerializer {
|
||||||
private:
|
private:
|
||||||
const CTransaction &txTo; //! reference to the spending transaction (the one being serialized)
|
const CTransaction& txTo; //!< reference to the spending transaction (the one being serialized)
|
||||||
const CScript &scriptCode; //! output script being consumed
|
const CScript& scriptCode; //!< output script being consumed
|
||||||
const unsigned int nIn; //! input index of txTo being signed
|
const unsigned int nIn; //!< input index of txTo being signed
|
||||||
const bool fAnyoneCanPay; //! whether the hashtype has the SIGHASH_ANYONECANPAY flag set
|
const bool fAnyoneCanPay; //!< whether the hashtype has the SIGHASH_ANYONECANPAY flag set
|
||||||
const bool fHashSingle; //! whether the hashtype is SIGHASH_SINGLE
|
const bool fHashSingle; //!< whether the hashtype is SIGHASH_SINGLE
|
||||||
const bool fHashNone; //! whether the hashtype is SIGHASH_NONE
|
const bool fHashNone; //!< whether the hashtype is SIGHASH_NONE
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CTransactionSignatureSerializer(const CTransaction &txToIn, const CScript &scriptCodeIn, unsigned int nInIn, int nHashTypeIn) :
|
CTransactionSignatureSerializer(const CTransaction &txToIn, const CScript &scriptCodeIn, unsigned int nInIn, int nHashTypeIn) :
|
||||||
|
@ -27,7 +27,7 @@ public:
|
|||||||
CScriptID(const uint160& in) : uint160(in) {}
|
CScriptID(const uint160& in) : uint160(in) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned int MAX_OP_RETURN_RELAY = 83; //! bytes (+1 for OP_RETURN, +2 for the pushdata opcodes)
|
static const unsigned int MAX_OP_RETURN_RELAY = 83; //!< bytes (+1 for OP_RETURN, +2 for the pushdata opcodes)
|
||||||
extern bool fAcceptDatacarrier;
|
extern bool fAcceptDatacarrier;
|
||||||
extern unsigned nMaxDatacarrierBytes;
|
extern unsigned nMaxDatacarrierBytes;
|
||||||
|
|
||||||
|
@ -74,28 +74,28 @@ class CTxMemPoolEntry
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CTransaction tx;
|
CTransaction tx;
|
||||||
CAmount nFee; //! Cached to avoid expensive parent-transaction lookups
|
CAmount nFee; //!< Cached to avoid expensive parent-transaction lookups
|
||||||
size_t nTxSize; //! ... and avoid recomputing tx size
|
size_t nTxSize; //!< ... and avoid recomputing tx size
|
||||||
size_t nModSize; //! ... and modified size for priority
|
size_t nModSize; //!< ... and modified size for priority
|
||||||
size_t nUsageSize; //! ... and total memory usage
|
size_t nUsageSize; //!< ... and total memory usage
|
||||||
int64_t nTime; //! Local time when entering the mempool
|
int64_t nTime; //!< Local time when entering the mempool
|
||||||
double entryPriority; //! Priority when entering the mempool
|
double entryPriority; //!< Priority when entering the mempool
|
||||||
unsigned int entryHeight; //! Chain height when entering the mempool
|
unsigned int entryHeight; //!< Chain height when entering the mempool
|
||||||
bool hadNoDependencies; //! Not dependent on any other txs when it entered the mempool
|
bool hadNoDependencies; //!< Not dependent on any other txs when it entered the mempool
|
||||||
CAmount inChainInputValue; //! Sum of all txin values that are already in blockchain
|
CAmount inChainInputValue; //!< Sum of all txin values that are already in blockchain
|
||||||
bool spendsCoinbase; //! keep track of transactions that spend a coinbase
|
bool spendsCoinbase; //!< keep track of transactions that spend a coinbase
|
||||||
unsigned int sigOpCount; //! Legacy sig ops plus P2SH sig op count
|
unsigned int sigOpCount; //!< Legacy sig ops plus P2SH sig op count
|
||||||
int64_t feeDelta; //! Used for determining the priority of the transaction for mining in a block
|
int64_t feeDelta; //!< Used for determining the priority of the transaction for mining in a block
|
||||||
LockPoints lockPoints; //! Track the height and time at which tx was final
|
LockPoints lockPoints; //!< Track the height and time at which tx was final
|
||||||
|
|
||||||
// Information about descendants of this transaction that are in the
|
// Information about descendants of this transaction that are in the
|
||||||
// mempool; if we remove this transaction we must remove all of these
|
// mempool; if we remove this transaction we must remove all of these
|
||||||
// descendants as well. if nCountWithDescendants is 0, treat this entry as
|
// descendants as well. if nCountWithDescendants is 0, treat this entry as
|
||||||
// dirty, and nSizeWithDescendants and nModFeesWithDescendants will not be
|
// dirty, and nSizeWithDescendants and nModFeesWithDescendants will not be
|
||||||
// correct.
|
// correct.
|
||||||
uint64_t nCountWithDescendants; //! number of descendant transactions
|
uint64_t nCountWithDescendants; //!< number of descendant transactions
|
||||||
uint64_t nSizeWithDescendants; //! ... and size
|
uint64_t nSizeWithDescendants; //!< ... and size
|
||||||
CAmount nModFeesWithDescendants; //! ... and total fees (all including us)
|
CAmount nModFeesWithDescendants; //!< ... and total fees (all including us)
|
||||||
|
|
||||||
// Analogous statistics for ancestor transactions
|
// Analogous statistics for ancestor transactions
|
||||||
uint64_t nCountWithAncestors;
|
uint64_t nCountWithAncestors;
|
||||||
@ -399,18 +399,18 @@ public:
|
|||||||
class CTxMemPool
|
class CTxMemPool
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
uint32_t nCheckFrequency; //! Value n means that n times in 2^32 we check.
|
uint32_t nCheckFrequency; //!< Value n means that n times in 2^32 we check.
|
||||||
unsigned int nTransactionsUpdated;
|
unsigned int nTransactionsUpdated;
|
||||||
CBlockPolicyEstimator* minerPolicyEstimator;
|
CBlockPolicyEstimator* minerPolicyEstimator;
|
||||||
|
|
||||||
uint64_t totalTxSize; //! sum of all mempool tx' byte sizes
|
uint64_t totalTxSize; //!< sum of all mempool tx' byte sizes
|
||||||
uint64_t cachedInnerUsage; //! sum of dynamic memory usage of all the map elements (NOT the maps themselves)
|
uint64_t cachedInnerUsage; //!< sum of dynamic memory usage of all the map elements (NOT the maps themselves)
|
||||||
|
|
||||||
CFeeRate minReasonableRelayFee;
|
CFeeRate minReasonableRelayFee;
|
||||||
|
|
||||||
mutable int64_t lastRollingFeeUpdate;
|
mutable int64_t lastRollingFeeUpdate;
|
||||||
mutable bool blockSinceLastRollingFeeBump;
|
mutable bool blockSinceLastRollingFeeBump;
|
||||||
mutable double rollingMinimumFeeRate; //! minimum fee to get into the pool, decreases exponentially
|
mutable double rollingMinimumFeeRate; //!< minimum fee to get into the pool, decreases exponentially
|
||||||
|
|
||||||
void trackPackageRemoved(const CFeeRate& rate);
|
void trackPackageRemoved(const CFeeRate& rate);
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
static int64_t nMockTime = 0; //! For unit testing
|
static int64_t nMockTime = 0; //!< For unit testing
|
||||||
|
|
||||||
int64_t GetTime()
|
int64_t GetTime()
|
||||||
{
|
{
|
||||||
|
@ -228,11 +228,11 @@ public:
|
|||||||
mapValue_t mapValue;
|
mapValue_t mapValue;
|
||||||
std::vector<std::pair<std::string, std::string> > vOrderForm;
|
std::vector<std::pair<std::string, std::string> > vOrderForm;
|
||||||
unsigned int fTimeReceivedIsTxTime;
|
unsigned int fTimeReceivedIsTxTime;
|
||||||
unsigned int nTimeReceived; //! time received by this node
|
unsigned int nTimeReceived; //!< time received by this node
|
||||||
unsigned int nTimeSmart;
|
unsigned int nTimeSmart;
|
||||||
char fFromMe;
|
char fFromMe;
|
||||||
std::string strFromAccount;
|
std::string strFromAccount;
|
||||||
int64_t nOrderPos; //! position in ordered transaction list
|
int64_t nOrderPos; //!< position in ordered transaction list
|
||||||
|
|
||||||
// memory only
|
// memory only
|
||||||
mutable bool fDebitCached;
|
mutable bool fDebitCached;
|
||||||
@ -324,7 +324,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
READWRITE(*(CMerkleTx*)this);
|
READWRITE(*(CMerkleTx*)this);
|
||||||
std::vector<CMerkleTx> vUnused; //! Used to be vtxPrev
|
std::vector<CMerkleTx> vUnused; //!< Used to be vtxPrev
|
||||||
READWRITE(vUnused);
|
READWRITE(vUnused);
|
||||||
READWRITE(mapValue);
|
READWRITE(mapValue);
|
||||||
READWRITE(vOrderForm);
|
READWRITE(vOrderForm);
|
||||||
@ -465,7 +465,7 @@ public:
|
|||||||
std::string strOtherAccount;
|
std::string strOtherAccount;
|
||||||
std::string strComment;
|
std::string strComment;
|
||||||
mapValue_t mapValue;
|
mapValue_t mapValue;
|
||||||
int64_t nOrderPos; //! position in ordered transaction list
|
int64_t nOrderPos; //!< position in ordered transaction list
|
||||||
uint64_t nEntryNo;
|
uint64_t nEntryNo;
|
||||||
|
|
||||||
CAccountingEntry()
|
CAccountingEntry()
|
||||||
|
Loading…
Reference in New Issue
Block a user