mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cleanups.
This commit is contained in:
@@ -779,7 +779,7 @@ int UniqueNodeList::processValidators(const std::string& strSite, const std::str
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Given a section with IPs, parse and persist it for a validator.
|
// Given a section with IPs, parse and persist it for a validator.
|
||||||
void UniqueNodeList::responseIps(const std::string& strSite, const NewcoinAddress& naNodePublic, const boost::system::error_code& err, const std::string strIpsFile)
|
void UniqueNodeList::responseIps(const std::string& strSite, const NewcoinAddress& naNodePublic, const boost::system::error_code& err, const std::string& strIpsFile)
|
||||||
{
|
{
|
||||||
if (!err)
|
if (!err)
|
||||||
{
|
{
|
||||||
@@ -819,7 +819,7 @@ void UniqueNodeList::getIpsUrl(const NewcoinAddress& naNodePublic, section secSi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// After fetching a newcoin.txt from a web site, given a section with validators, parse and persist it.
|
// After fetching a newcoin.txt from a web site, given a section with validators, parse and persist it.
|
||||||
void UniqueNodeList::responseValidators(const std::string& strValidatorsUrl, const NewcoinAddress& naNodePublic, section secSite, const std::string& strSite, const boost::system::error_code& err, const std::string strValidatorsFile)
|
void UniqueNodeList::responseValidators(const std::string& strValidatorsUrl, const NewcoinAddress& naNodePublic, section secSite, const std::string& strSite, const boost::system::error_code& err, const std::string& strValidatorsFile)
|
||||||
{
|
{
|
||||||
if (!err)
|
if (!err)
|
||||||
{
|
{
|
||||||
@@ -858,7 +858,7 @@ void UniqueNodeList::getValidatorsUrl(const NewcoinAddress& naNodePublic, sectio
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process a newcoin.txt.
|
// Process a newcoin.txt.
|
||||||
void UniqueNodeList::processFile(const std::string strDomain, const NewcoinAddress& naNodePublic, section secSite)
|
void UniqueNodeList::processFile(const std::string& strDomain, const NewcoinAddress& naNodePublic, section secSite)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Process Validators
|
// Process Validators
|
||||||
@@ -885,7 +885,7 @@ void UniqueNodeList::processFile(const std::string strDomain, const NewcoinAddre
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Given a newcoin.txt, process it.
|
// Given a newcoin.txt, process it.
|
||||||
void UniqueNodeList::responseFetch(const std::string strDomain, const boost::system::error_code& err, const std::string strSiteFile)
|
void UniqueNodeList::responseFetch(const std::string& strDomain, const boost::system::error_code& err, const std::string& strSiteFile)
|
||||||
{
|
{
|
||||||
section secSite = ParseSection(strSiteFile, true);
|
section secSite = ParseSection(strSiteFile, true);
|
||||||
bool bGood = !err;
|
bool bGood = !err;
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ private:
|
|||||||
|
|
||||||
bool scoreRound(std::vector<scoreNode>& vsnNodes);
|
bool scoreRound(std::vector<scoreNode>& vsnNodes);
|
||||||
|
|
||||||
void responseFetch(const std::string strDomain, const boost::system::error_code& err, const std::string strSiteFile);
|
void responseFetch(const std::string& strDomain, const boost::system::error_code& err, const std::string& strSiteFile);
|
||||||
|
|
||||||
boost::posix_time::ptime mtpScoreNext; // When to start scoring.
|
boost::posix_time::ptime mtpScoreNext; // When to start scoring.
|
||||||
boost::posix_time::ptime mtpScoreStart; // Time currently started scoring.
|
boost::posix_time::ptime mtpScoreStart; // Time currently started scoring.
|
||||||
@@ -119,13 +119,13 @@ private:
|
|||||||
|
|
||||||
void getValidatorsUrl(const NewcoinAddress& naNodePublic, section secSite);
|
void getValidatorsUrl(const NewcoinAddress& naNodePublic, section secSite);
|
||||||
void getIpsUrl(const NewcoinAddress& naNodePublic, section secSite);
|
void getIpsUrl(const NewcoinAddress& naNodePublic, section secSite);
|
||||||
void responseIps(const std::string& strSite, const NewcoinAddress& naNodePublic, const boost::system::error_code& err, const std::string strIpsFile);
|
void responseIps(const std::string& strSite, const NewcoinAddress& naNodePublic, const boost::system::error_code& err, const std::string& strIpsFile);
|
||||||
void responseValidators(const std::string& strValidatorsUrl, const NewcoinAddress& naNodePublic, section secSite, const std::string& strSite, const boost::system::error_code& err, const std::string strValidatorsFile);
|
void responseValidators(const std::string& strValidatorsUrl, const NewcoinAddress& naNodePublic, section secSite, const std::string& strSite, const boost::system::error_code& err, const std::string& strValidatorsFile);
|
||||||
|
|
||||||
void processIps(const std::string& strSite, const NewcoinAddress& naNodePublic, section::mapped_type* pmtVecStrIps);
|
void processIps(const std::string& strSite, const NewcoinAddress& naNodePublic, section::mapped_type* pmtVecStrIps);
|
||||||
int processValidators(const std::string& strSite, const std::string& strValidatorsSrc, const NewcoinAddress& naNodePublic, validatorSource vsWhy, section::mapped_type* pmtVecStrValidators);
|
int processValidators(const std::string& strSite, const std::string& strValidatorsSrc, const NewcoinAddress& naNodePublic, validatorSource vsWhy, section::mapped_type* pmtVecStrValidators);
|
||||||
|
|
||||||
void processFile(const std::string strDomain, const NewcoinAddress& naNodePublic, section secSite);
|
void processFile(const std::string& strDomain, const NewcoinAddress& naNodePublic, section secSite);
|
||||||
|
|
||||||
bool getSeedDomains(const std::string& strDomain, seedDomain& dstSeedDomain);
|
bool getSeedDomains(const std::string& strDomain, seedDomain& dstSeedDomain);
|
||||||
void setSeedDomains(const seedDomain& dstSeedDomain, bool bNext);
|
void setSeedDomains(const seedDomain& dstSeedDomain, bool bNext);
|
||||||
|
|||||||
Reference in New Issue
Block a user