![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "util.h"#include "allocators.h"#include "chainparamsbase.h"#include "random.h"#include "sync.h"#include "utilstrencodings.h"#include "utiltime.h"#include <stdarg.h>#include <boost/date_time/posix_time/posix_time.hpp>#include <openssl/bio.h>#include <openssl/buffer.h>#include <openssl/evp.h>#include "pubkey.h"#include "key.h"#include "secp256k1.h"#include <algorithm>#include <fcntl.h>#include <sys/resource.h>#include <sys/stat.h>#include <boost/algorithm/string/case_conv.hpp>#include <boost/algorithm/string/join.hpp>#include <boost/algorithm/string/predicate.hpp>#include <boost/program_options/detail/config_file.hpp>#include <boost/program_options/parsers.hpp>#include <boost/thread.hpp>#include <openssl/conf.h>#include <openssl/crypto.h>#include <openssl/rand.h>Go to the source code of this file.
Classes | |
| class | CInit |
Functions | |
| void | locking_callback (int mode, int i, const char *file, int line) NO_THREAD_SAFETY_ANALYSIS |
| std::string | FilterInjection (const std::string &str) |
| void | ParseParameters (int argc, const char *const argv[]) |
| std::string | GetArg (const std::string &strArg, const std::string &strDefault) |
| Return string argument or default value. More... | |
| int64_t | GetArg (const std::string &strArg, int64_t nDefault) |
| Return integer argument or default value. More... | |
| bool | GetBoolArg (const std::string &strArg, bool fDefault) |
| Return boolean argument or default value. More... | |
| bool | SoftSetArg (const std::string &strArg, const std::string &strValue) |
| Set an argument if it doesn't already have a value. More... | |
| bool | SoftSetBoolArg (const std::string &strArg, bool fValue) |
| Set a boolean argument if it doesn't already have a value. More... | |
| std::string | HelpMessageGroup (const std::string &message) |
| Format a string to be used as group of options in help messages. More... | |
| std::string | HelpMessageOpt (const std::string &option, const std::string &message) |
| Format a string to be used as option description in help messages. More... | |
| void | PrintExceptionContinue (const std::exception *pex, const char *pszThread) |
| fs::path | GetDefaultDataDir () |
| const fs::path & | GetDataDir (bool fNetSpecific) |
| void | ClearDatadirCache () |
| fs::path | GetConfigFile () |
| fs::path | GetMasternodeConfigFile () |
| void | ReadConfigFile (std::map< std::string, std::string > &mapSettingsRet, std::map< std::string, std::vector< std::string > > &mapMultiSettingsRet) |
| fs::path | AbsPathForConfigVal (const fs::path &path, bool net_specific) |
| fs::path | GetPidFile () |
| void | CreatePidFile (const fs::path &path, pid_t pid) |
| bool | RenameOver (fs::path src, fs::path dest) |
| bool | TryCreateDirectory (const fs::path &p) |
| Ignores exceptions thrown by Boost's create_directory if the requested directory exists. More... | |
| void | FileCommit (FILE *fileout) |
| bool | TruncateFile (FILE *file, unsigned int length) |
| int | RaiseFileDescriptorLimit (int nMinFD) |
| this function tries to raise the file descriptor limit to the requested number. More... | |
| void | AllocateFileRange (FILE *file, unsigned int offset, unsigned int length) |
| this function tries to make a particular range of a file allocated (corresponding to disk space) it is advisory, and the range specified in the arguments will never contain live data More... | |
| fs::path | GetTempPath () |
| void | runCommand (std::string strCommand) |
| void | SetupEnvironment () |
| bool | PointHashingSuccessively (const CPubKey &pk, const unsigned char *tweak, unsigned char *out) |
| bool | SetupNetworking () |
| void | SetThreadPriority (int nPriority) |
Variables | |
| bool | fMasterNode = false |
| std::string | strMasterNodePrivKey = "" |
| std::string | strMasterNodeAddr = "" |
| bool | fLiteMode = false |
| bool | fEnableSwiftTX = true |
| int | nSwiftTXDepth = 5 |
| int64_t | enforceMasternodePaymentsTime = 4085657524 |
| bool | fSucessfullyLoaded = false |
| std::vector< int64_t > | obfuScationDenominations |
| All denominations used by obfuscation. More... | |
| std::string | strBudgetMode = "" |
| std::map< std::string, std::string > | mapArgs |
| std::map< std::string, std::vector< std::string > > | mapMultiArgs |
| bool | fDaemon = false |
| std::string | strMiscWarning |
| class CInit | instance_of_cinit |
| fs::path AbsPathForConfigVal | ( | const fs::path & | path, |
| bool | net_specific | ||
| ) |
| void AllocateFileRange | ( | FILE * | file, |
| unsigned int | offset, | ||
| unsigned int | length | ||
| ) |
| void CreatePidFile | ( | const fs::path & | path, |
| pid_t | pid | ||
| ) |
| std::string GetArg | ( | const std::string & | strArg, |
| const std::string & | strDefault | ||
| ) |
| int64_t GetArg | ( | const std::string & | strArg, |
| int64_t | nDefault | ||
| ) |
| bool GetBoolArg | ( | const std::string & | strArg, |
| bool | fDefault | ||
| ) |
| fs::path GetConfigFile | ( | ) |
| const fs::path& GetDataDir | ( | bool | fNetSpecific | ) |
| fs::path GetDefaultDataDir | ( | ) |
| fs::path GetMasternodeConfigFile | ( | ) |
| fs::path GetPidFile | ( | ) |
| std::string HelpMessageGroup | ( | const std::string & | message | ) |
| std::string HelpMessageOpt | ( | const std::string & | option, |
| const std::string & | message | ||
| ) |
Format a string to be used as option description in help messages.
| option | Option message (e.g. "-rpcuser=<user>") |
| message | Option description (e.g. "Username for JSON-RPC connections") |
Definition at line 286 of file util.cpp.
| void locking_callback | ( | int | mode, |
| int | i, | ||
| const char * | file, | ||
| int | line | ||
| ) |
| void ParseParameters | ( | int | argc, |
| const char *const | argv[] | ||
| ) |
| bool PointHashingSuccessively | ( | const CPubKey & | pk, |
| const unsigned char * | tweak, | ||
| unsigned char * | out | ||
| ) |
| void PrintExceptionContinue | ( | const std::exception * | pex, |
| const char * | pszThread | ||
| ) |
| int RaiseFileDescriptorLimit | ( | int | nMinFD | ) |
| void ReadConfigFile | ( | std::map< std::string, std::string > & | mapSettingsRet, |
| std::map< std::string, std::vector< std::string > > & | mapMultiSettingsRet | ||
| ) |
| bool RenameOver | ( | fs::path | src, |
| fs::path | dest | ||
| ) |
| void runCommand | ( | std::string | strCommand | ) |
| void SetThreadPriority | ( | int | nPriority | ) |
| void SetupEnvironment | ( | ) |
| bool SetupNetworking | ( | ) |
| bool SoftSetArg | ( | const std::string & | strArg, |
| const std::string & | strValue | ||
| ) |
| bool SoftSetBoolArg | ( | const std::string & | strArg, |
| bool | fValue | ||
| ) |
Set a boolean argument if it doesn't already have a value.
| strArg | Argument to set (e.g. "-foo") |
| fValue | Value (e.g. false) |
Definition at line 270 of file util.cpp.
| bool TryCreateDirectory | ( | const fs::path & | p | ) |
| class CInit instance_of_cinit |
| std::map<std::string, std::vector<std::string> > mapMultiArgs |
| std::vector<int64_t> obfuScationDenominations |
1.8.17