PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
CMasternodeDB Class Reference

Access to the MN database (mncache.dat) More...

#include <masternodeman.h>

Public Types

enum  ReadResult {
  Ok , FileError , HashReadError , IncorrectHash ,
  IncorrectMagicMessage , IncorrectMagicNumber , IncorrectFormat
}
 

Public Member Functions

 CMasternodeDB ()
 
bool Write (const CMasternodeMan &mnodemanToSave)
 
ReadResult Read (CMasternodeMan &mnodemanToLoad)
 

Private Attributes

fs::path pathMN
 
std::string strMagicMessage
 

Detailed Description

Access to the MN database (mncache.dat)

Definition at line 33 of file masternodeman.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 40 of file masternodeman.h.

Constructor & Destructor Documentation

◆ CMasternodeDB()

CMasternodeDB::CMasternodeDB ( )

Definition at line 46 of file masternodeman.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Read()

CMasternodeDB::ReadResult CMasternodeDB::Read ( CMasternodeMan mnodemanToLoad)

Definition at line 88 of file masternodeman.cpp.

Here is the call graph for this function:

◆ Write()

bool CMasternodeDB::Write ( const CMasternodeMan mnodemanToSave)

Definition at line 52 of file masternodeman.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pathMN

fs::path CMasternodeDB::pathMN
private

Definition at line 36 of file masternodeman.h.

◆ strMagicMessage

std::string CMasternodeDB::strMagicMessage
private

Definition at line 37 of file masternodeman.h.


The documentation for this class was generated from the following files: