Changeset View
Changeset View
Standalone View
Standalone View
src/config.h
Show All 20 Lines | public: | ||||
virtual const CChainParams &GetChainParams() const = 0; | virtual const CChainParams &GetChainParams() const = 0; | ||||
virtual void SetCashAddrEncoding(bool) = 0; | virtual void SetCashAddrEncoding(bool) = 0; | ||||
virtual bool UseCashAddrEncoding() const = 0; | virtual bool UseCashAddrEncoding() const = 0; | ||||
}; | }; | ||||
class GlobalConfig final : public Config { | class GlobalConfig final : public Config { | ||||
public: | public: | ||||
GlobalConfig(); | GlobalConfig(); | ||||
bool SetMaxBlockSize(uint64_t maxBlockSize); | bool SetMaxBlockSize(uint64_t maxBlockSize) override; | ||||
uint64_t GetMaxBlockSize() const; | uint64_t GetMaxBlockSize() const override; | ||||
bool SetBlockPriorityPercentage(int64_t blockPriorityPercentage); | bool SetBlockPriorityPercentage(int64_t blockPriorityPercentage) override; | ||||
uint8_t GetBlockPriorityPercentage() const; | uint8_t GetBlockPriorityPercentage() const override; | ||||
const CChainParams &GetChainParams() const; | const CChainParams &GetChainParams() const override; | ||||
void SetCashAddrEncoding(bool) override; | void SetCashAddrEncoding(bool) override; | ||||
bool UseCashAddrEncoding() const override; | bool UseCashAddrEncoding() const override; | ||||
private: | private: | ||||
bool useCashAddr; | bool useCashAddr; | ||||
}; | }; | ||||
// Dummy for subclassing in unittests | // Dummy for subclassing in unittests | ||||
Show All 17 Lines |