Scorum
hardfork_property.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include <scorum/chain/hardfork.hpp>
5 
6 namespace scorum {
7 namespace chain {
8 
9 struct hardfork_property_service_i : public base_service_i<hardfork_property_object>
10 {
11  virtual bool has_hardfork(uint32_t hardfork) const = 0;
12 };
13 
14 class dbs_hardfork_property : public dbs_service_base<hardfork_property_service_i>
15 {
16  friend class dbservice_dbs_factory;
17 
18 protected:
19  explicit dbs_hardfork_property(database& db);
20 
21 public:
22  virtual bool has_hardfork(uint32_t hardfork) const override;
23 
24 private:
25  // TODO: tech dept: remove this dependency if possible
26  database& _db;
27 };
28 
29 } // namespace chain
30 } // namespace scorum
tracks the blockchain state in an extensible manner
Definition: database.hpp:52
virtual bool has_hardfork(uint32_t hardfork) const override
Definition: asset.cpp:15
virtual bool has_hardfork(uint32_t hardfork) const =0