Changeset View
Changeset View
Standalone View
Standalone View
src/config.h
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | private: | ||||
uint64_t nBlockPriorityPercentage; | 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); | ||||
DummyConfig(std::unique_ptr<CChainParams> chainParamsIn); | |||||
bool SetMaxBlockSize(uint64_t maxBlockSize) override { return false; } | bool SetMaxBlockSize(uint64_t maxBlockSize) override { return false; } | ||||
uint64_t GetMaxBlockSize() const override { return 0; } | uint64_t GetMaxBlockSize() const override { return 0; } | ||||
bool SetBlockPriorityPercentage(int64_t blockPriorityPercentage) override { | bool SetBlockPriorityPercentage(int64_t blockPriorityPercentage) override { | ||||
return false; | return false; | ||||
} | } | ||||
uint8_t GetBlockPriorityPercentage() const override { return 0; } | uint8_t GetBlockPriorityPercentage() const override { return 0; } | ||||
void SetChainParams(std::string net); | void SetChainParams(std::string net); | ||||
Show All 26 Lines |