Changeset View
Changeset View
Standalone View
Standalone View
src/config.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | private: | ||||
/** RPC authentication configs */ | /** RPC authentication configs */ | ||||
// Pre-base64-encoded authentication token, with user and password separated | // Pre-base64-encoded authentication token, with user and password separated | ||||
// by a colon. | // by a colon. | ||||
std::string rpcUserAndPassword; | std::string rpcUserAndPassword; | ||||
// CORS domain, the allowed Origin | // CORS domain, the allowed Origin | ||||
std::string rpcCORSDomain; | std::string rpcCORSDomain; | ||||
/** The largest block size this node will accept. */ | |||||
uint64_t nMaxBlockSize; | |||||
uint64_t nBlockPriorityPercentage; | |||||
}; | }; | ||||
// Dummy for subclassing in unittests | // Dummy for subclassing in unittests | ||||
class DummyConfig : public Config { | class DummyConfig : public Config { | ||||
public: | public: | ||||
DummyConfig(); | DummyConfig(); | ||||
DummyConfig(std::string net); | DummyConfig(std::string net); | ||||
bool SetMaxBlockSize(uint64_t maxBlockSize) override { return false; } | bool SetMaxBlockSize(uint64_t maxBlockSize) override { return false; } | ||||
Show All 33 Lines |