Changeset View
Changeset View
Standalone View
Standalone View
src/config.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | public: | ||||
std::string GetRPCUserAndPassword() const override; | std::string GetRPCUserAndPassword() const override; | ||||
void SetRPCCORSDomain(std::string corsDomain) override; | void SetRPCCORSDomain(std::string corsDomain) override; | ||||
std::string GetRPCCORSDomain() const override; | std::string GetRPCCORSDomain() const override; | ||||
private: | private: | ||||
bool useCashAddr; | bool useCashAddr; | ||||
Amount excessUTXOCharge; | Amount excessUTXOCharge; | ||||
CFeeRate feePerKB; | CFeeRate feePerKB; | ||||
/** RPC authentication configs */ | |||||
// Pre-base64-encoded authentication token, with user and password separated | |||||
// by a colon. | |||||
std::string rpcUserAndPassword; | |||||
// CORS domain, the allowed Origin | |||||
std::string rpcCORSDomain; | |||||
}; | }; | ||||
// 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 |