PRCYCoin  2.0.0.7rc1
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, bool fDryRun=false)
 

Private Attributes

fs::path pathMN
 
std::string strMagicMessage
 

Detailed Description

Access to the MN database (mncache.dat)

Definition at line 34 of file masternodeman.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 41 of file masternodeman.h.

Constructor & Destructor Documentation

◆ CMasternodeDB()

CMasternodeDB::CMasternodeDB ( )

Definition at line 54 of file masternodeman.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Read()

CMasternodeDB::ReadResult CMasternodeDB::Read ( CMasternodeMan mnodemanToLoad,
bool  fDryRun = false 
)

Definition at line 93 of file masternodeman.cpp.

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

◆ Write()

bool CMasternodeDB::Write ( const CMasternodeMan mnodemanToSave)

Definition at line 60 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 37 of file masternodeman.h.

◆ strMagicMessage

std::string CMasternodeDB::strMagicMessage
private

Definition at line 38 of file masternodeman.h.


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