forked from Bitcoin-ABC/bitcoin-abc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
35 lines (27 loc) · 978 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2017 Amaury SÉCHET
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONFIG_H
#define BITCOIN_CONFIG_H
#include <boost/noncopyable.hpp>
#include <cstdint>
class CChainParams;
class Config : public boost::noncopyable {
public:
virtual bool SetMaxBlockSize(uint64_t maxBlockSize) = 0;
virtual uint64_t GetMaxBlockSize() const = 0;
virtual bool SetUAHFStartTime(int64_t uahfStartTime) = 0;
virtual int64_t GetUAHFStartTime() const = 0;
virtual const CChainParams &GetChainParams() const = 0;
};
class GlobalConfig final : public Config {
public:
bool SetMaxBlockSize(uint64_t maxBlockSize);
uint64_t GetMaxBlockSize() const;
bool SetUAHFStartTime(int64_t uahfStartTime);
int64_t GetUAHFStartTime() const;
const CChainParams &GetChainParams() const;
};
// Temporary woraround.
const Config &GetConfig();
#endif