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

Save Masternode Payment Data (mnpayments.dat) More...

#include <masternode-payments.h>

Public Types

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

Public Member Functions

 CMasternodePaymentDB ()
 
bool Write (const CMasternodePayments &objToSave)
 
ReadResult Read (CMasternodePayments &objToLoad)
 

Private Attributes

fs::path pathDB
 
std::string strMagicMessage
 

Detailed Description

Save Masternode Payment Data (mnpayments.dat)

Definition at line 43 of file masternode-payments.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 50 of file masternode-payments.h.

Constructor & Destructor Documentation

◆ CMasternodePaymentDB()

CMasternodePaymentDB::CMasternodePaymentDB ( )

Definition at line 36 of file masternode-payments.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Read()

CMasternodePaymentDB::ReadResult CMasternodePaymentDB::Read ( CMasternodePayments objToLoad)

Definition at line 74 of file masternode-payments.cpp.

Here is the call graph for this function:

◆ Write()

bool CMasternodePaymentDB::Write ( const CMasternodePayments objToSave)

Definition at line 42 of file masternode-payments.cpp.

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

Member Data Documentation

◆ pathDB

fs::path CMasternodePaymentDB::pathDB
private

Definition at line 46 of file masternode-payments.h.

◆ strMagicMessage

std::string CMasternodePaymentDB::strMagicMessage
private

Definition at line 47 of file masternode-payments.h.


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