Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <addrdb.h>

Public Member Functions

 CBanEntry ()
 
 CBanEntry (int64_t nCreateTimeIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void SetNull ()
 
std::string banReasonToString () const
 

Public Attributes

int nVersion
 
int64_t nCreateTime
 
int64_t nBanUntil
 
uint8_t banReason
 
 ADD_SERIALIZE_METHODS
 

Static Public Attributes

static const int CURRENT_VERSION =1
 

Detailed Description

Definition at line 26 of file addrdb.h.

Constructor & Destructor Documentation

◆ CBanEntry() [1/2]

CBanEntry::CBanEntry ( )
inline

Definition at line 35 of file addrdb.h.

References SetNull().

◆ CBanEntry() [2/2]

CBanEntry::CBanEntry ( int64_t  nCreateTimeIn)
inlineexplicit

Definition at line 40 of file addrdb.h.

References nCreateTime, and SetNull().

Member Function Documentation

◆ banReasonToString()

std::string CBanEntry::banReasonToString ( ) const
inline

Definition at line 64 of file addrdb.h.

References banReason, BanReasonManuallyAdded, and BanReasonNodeMisbehaving.

Referenced by listbanned().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CBanEntry::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 49 of file addrdb.h.

References banReason, nBanUntil, nCreateTime, and READWRITE.

◆ SetNull()

void CBanEntry::SetNull ( )
inline

Definition at line 56 of file addrdb.h.

References banReason, BanReasonUnknown, CURRENT_VERSION, nBanUntil, nCreateTime, and nVersion.

Referenced by CBanEntry().

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBanEntry::ADD_SERIALIZE_METHODS

Definition at line 46 of file addrdb.h.

◆ banReason

uint8_t CBanEntry::banReason

Definition at line 33 of file addrdb.h.

Referenced by CConnman::Ban(), banReasonToString(), SerializationOp(), and SetNull().

◆ CURRENT_VERSION

const int CBanEntry::CURRENT_VERSION =1
static

Definition at line 29 of file addrdb.h.

Referenced by SetNull().

◆ nBanUntil

◆ nCreateTime

int64_t CBanEntry::nCreateTime

Definition at line 31 of file addrdb.h.

Referenced by CBanEntry(), listbanned(), SerializationOp(), and SetNull().

◆ nVersion

int CBanEntry::nVersion

Definition at line 30 of file addrdb.h.

Referenced by SetNull().


The documentation for this class was generated from the following file:
Released under the MIT license