Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
Show All 34 Lines | |||||
class Wallet; | class Wallet; | ||||
//! Top-level interface for a bitcoin node (bitcoind process). | //! Top-level interface for a bitcoin node (bitcoind process). | ||||
class Node { | class Node { | ||||
public: | public: | ||||
virtual ~Node() {} | virtual ~Node() {} | ||||
//! Set command line arguments. | //! Set command line arguments. | ||||
virtual void parseParameters(int argc, const char *const argv[]) = 0; | virtual bool parseParameters(int argc, const char *const argv[], | ||||
std::string &error) = 0; | |||||
//! Set a command line argument if it doesn't already have a value | //! Set a command line argument if it doesn't already have a value | ||||
virtual bool softSetArg(const std::string &arg, | virtual bool softSetArg(const std::string &arg, | ||||
const std::string &value) = 0; | const std::string &value) = 0; | ||||
//! Set a command line boolean argument if it doesn't already have a value | //! Set a command line boolean argument if it doesn't already have a value | ||||
virtual bool softSetBoolArg(const std::string &arg, bool value) = 0; | virtual bool softSetBoolArg(const std::string &arg, bool value) = 0; | ||||
//! Load settings from configuration file. | //! Load settings from configuration file. | ||||
virtual void readConfigFiles() = 0; | virtual bool readConfigFiles(std::string &error) = 0; | ||||
//! Choose network parameters. | //! Choose network parameters. | ||||
virtual void selectParams(const std::string &network) = 0; | virtual void selectParams(const std::string &network) = 0; | ||||
//! Get network name. | //! Get network name. | ||||
virtual std::string getNetwork() = 0; | virtual std::string getNetwork() = 0; | ||||
//! Init logging. | //! Init logging. | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |