Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show All 22 Lines | |||||
#include <primitives/block.h> | #include <primitives/block.h> | ||||
#include <rpc/server.h> | #include <rpc/server.h> | ||||
#include <shutdown.h> | #include <shutdown.h> | ||||
#include <support/allocators/secure.h> | #include <support/allocators/secure.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | |||||
#include <validation.h> | #include <validation.h> | ||||
#include <warnings.h> | #include <warnings.h> | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <univalue.h> | #include <univalue.h> | ||||
Show All 20 Lines | |||||
namespace interfaces { | namespace interfaces { | ||||
namespace { | namespace { | ||||
class NodeImpl : public Node { | class NodeImpl : public Node { | ||||
public: | public: | ||||
void initError(const std::string &message) override { | void initError(const std::string &message) override { | ||||
InitError(message); | InitError(Untranslated(message)); | ||||
} | } | ||||
bool parseParameters(int argc, const char *const argv[], | bool parseParameters(int argc, const char *const argv[], | ||||
std::string &error) override { | std::string &error) override { | ||||
return gArgs.ParseParameters(argc, argv, error); | return gArgs.ParseParameters(argc, argv, error); | ||||
} | } | ||||
bool readConfigFiles(std::string &error) override { | bool readConfigFiles(std::string &error) override { | ||||
return gArgs.ReadConfigFiles(error, true); | return gArgs.ReadConfigFiles(error, true); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines |