Electroneum
Loading...
Searching...
No Matches
electroneum::basic::Validator Class Reference

#include <validators.h>

Public Member Functions

 Validator ()
 Validator (const string &publicKey, uint64_t startHeight, uint64_t endHeight, string name="", string domain="", string page_link="")
const string getPublicKey ()
uint64_t getStartHeight ()
uint64_t getEndHeight ()
void setEndHeight (uint64_t end_height)
bool isWithinRange (uint64_t height)
void setName (string name)
string getName ()
void setDomain (string domain)
string getdomain ()
void setPageLink (string page_link)
string getPageLink ()
Validator getValidatorInfo ()

Detailed Description

Definition at line 72 of file validators.h.

Constructor & Destructor Documentation

◆ Validator() [1/2]

electroneum::basic::Validator::Validator ( )
default
Here is the caller graph for this function:

◆ Validator() [2/2]

electroneum::basic::Validator::Validator ( const string & publicKey,
uint64_t startHeight,
uint64_t endHeight,
string name = "",
string domain = "",
string page_link = "" )

Definition at line 37 of file validators.cpp.

38 : publicKey(publicKey), startHeight(startHeight), endHeight(endHeight), name(name), domain(domain), page_link(page_link) {}
std::string publicKey

Member Function Documentation

◆ getdomain()

string electroneum::basic::Validator::getdomain ( )
inline

Definition at line 117 of file validators.h.

117 {
118 return this->domain;
119 }

◆ getEndHeight()

uint64_t electroneum::basic::Validator::getEndHeight ( )
inline

Definition at line 93 of file validators.h.

93 {
94 return this->endHeight;
95 }

◆ getName()

string electroneum::basic::Validator::getName ( )
inline

Definition at line 109 of file validators.h.

109 {
110 return this->name;
111 }

◆ getPageLink()

string electroneum::basic::Validator::getPageLink ( )
inline

Definition at line 125 of file validators.h.

125 {
126 return this->page_link;
127 }

◆ getPublicKey()

const string electroneum::basic::Validator::getPublicKey ( )
inline

Definition at line 85 of file validators.h.

85 {
86 return this->publicKey;
87 }

◆ getStartHeight()

uint64_t electroneum::basic::Validator::getStartHeight ( )
inline

Definition at line 89 of file validators.h.

89 {
90 return this->startHeight;
91 }

◆ getValidatorInfo()

Validator electroneum::basic::Validator::getValidatorInfo ( )
inline

Definition at line 129 of file validators.h.

129 {
130 Validator v;
131 v.name = this->name;
132 v.domain = this->domain;
133 v.page_link = this->page_link;
134
135 return v;
136 }
Here is the call graph for this function:

◆ isWithinRange()

bool electroneum::basic::Validator::isWithinRange ( uint64_t height)
inline

Definition at line 101 of file validators.h.

101 {
102 return height >= this->startHeight && (height <= this->endHeight || this->endHeight == 0);
103 }
uint64_t height

◆ setDomain()

void electroneum::basic::Validator::setDomain ( string domain)
inline

Definition at line 113 of file validators.h.

113 {
114 this->domain = domain;
115 }

◆ setEndHeight()

void electroneum::basic::Validator::setEndHeight ( uint64_t end_height)
inline

Definition at line 97 of file validators.h.

97 {
98 this->endHeight = end_height;
99 }

◆ setName()

void electroneum::basic::Validator::setName ( string name)
inline

Definition at line 105 of file validators.h.

105 {
106 this->name = name;
107 }

◆ setPageLink()

void electroneum::basic::Validator::setPageLink ( string page_link)
inline

Definition at line 121 of file validators.h.

121 {
122 this->page_link = page_link;
123 }

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/cryptonote_basic/validators.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/cryptonote_basic/validators.cpp