Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <governance.h>
Public Member Functions | |
CRateCheckBuffer () | |
void | AddTimestamp (int64_t nTimestamp) |
int64_t | GetMinTimestamp () |
int64_t | GetMaxTimestamp () |
int | GetCount () |
double | GetRate () |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
Private Attributes | |
std::vector< int64_t > | vecTimestamps |
int | nDataStart |
int | nDataEnd |
bool | fBufferEmpty |
Detailed Description
Definition at line 43 of file governance.h.
Constructor & Destructor Documentation
◆ CRateCheckBuffer()
|
inline |
Definition at line 55 of file governance.h.
Member Function Documentation
◆ AddTimestamp()
|
inline |
Definition at line 63 of file governance.h.
References fBufferEmpty, nDataEnd, nDataStart, RATE_BUFFER_SIZE, and vecTimestamps.
Referenced by CGovernanceManager::MasternodeRateCheck().
◆ GetCount()
|
inline |
Definition at line 106 of file governance.h.
References fBufferEmpty, nDataEnd, nDataStart, and RATE_BUFFER_SIZE.
Referenced by GetRate().
◆ GetMaxTimestamp()
|
inline |
Definition at line 90 of file governance.h.
References fBufferEmpty, nDataEnd, nDataStart, RATE_BUFFER_SIZE, and vecTimestamps.
Referenced by GetRate().
◆ GetMinTimestamp()
|
inline |
Definition at line 74 of file governance.h.
References fBufferEmpty, nDataEnd, nDataStart, RATE_BUFFER_SIZE, and vecTimestamps.
Referenced by GetRate().
◆ GetRate()
|
inline |
Definition at line 121 of file governance.h.
References GetCount(), GetMaxTimestamp(), GetMinTimestamp(), and RATE_BUFFER_SIZE.
Referenced by CGovernanceManager::MasternodeRateCheck().
◆ SerializationOp()
|
inline |
Definition at line 139 of file governance.h.
References fBufferEmpty, nDataEnd, nDataStart, READWRITE, and vecTimestamps.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CRateCheckBuffer::ADD_SERIALIZE_METHODS |
Definition at line 136 of file governance.h.
◆ fBufferEmpty
|
private |
Definition at line 52 of file governance.h.
Referenced by AddTimestamp(), GetCount(), GetMaxTimestamp(), GetMinTimestamp(), and SerializationOp().
◆ nDataEnd
|
private |
Definition at line 50 of file governance.h.
Referenced by AddTimestamp(), GetCount(), GetMaxTimestamp(), GetMinTimestamp(), and SerializationOp().
◆ nDataStart
|
private |
Definition at line 48 of file governance.h.
Referenced by AddTimestamp(), GetCount(), GetMaxTimestamp(), GetMinTimestamp(), and SerializationOp().
◆ vecTimestamps
|
private |
Definition at line 46 of file governance.h.
Referenced by AddTimestamp(), GetMaxTimestamp(), GetMinTimestamp(), and SerializationOp().
The documentation for this class was generated from the following file:
- src/governance/governance.h