Scorum
libraries
chain
include
scorum
chain
services
genesis_state.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
scorum/chain/services/dbs_base.hpp
>
4
5
namespace
scorum
{
6
namespace
chain {
7
8
struct
genesis_state_service_i
9
{
10
virtual
const
fc::time_point_sec&
get_lock_withdraw_sp_until_timestamp
()
const
= 0;
11
};
12
13
class
dbs_genesis_state
:
public
dbs_base
,
public
genesis_state_service_i
14
{
15
friend
class
dbservice_dbs_factory
;
16
17
protected
:
18
explicit
dbs_genesis_state
(
database
& db);
19
20
public
:
21
const
fc::time_point_sec&
get_lock_withdraw_sp_until_timestamp
()
const override
;
22
23
private
:
24
// TODO: tech dept: remove this dependency if possible
25
database
& _db;
26
};
27
}
// namespace chain
28
}
// namespace scorum
scorum::chain::database
tracks the blockchain state in an extensible manner
Definition:
database.hpp:52
scorum::chain::dbs_base
Definition:
dbs_base.hpp:26
scorum::chain::dbs_genesis_state
Definition:
genesis_state.hpp:14
scorum::chain::dbs_genesis_state::get_lock_withdraw_sp_until_timestamp
const fc::time_point_sec & get_lock_withdraw_sp_until_timestamp() const override
Definition:
genesis_state.cpp:15
scorum::chain::dbs_genesis_state::dbs_genesis_state
dbs_genesis_state(database &db)
Definition:
genesis_state.cpp:9
scorum::chain::dbservice_dbs_factory
Definition:
dbservice_dbs_factory.hpp:18
dbs_base.hpp
scorum
Definition:
asset.cpp:15
scorum::chain::genesis_state_service_i
Definition:
genesis_state.hpp:9
scorum::chain::genesis_state_service_i::get_lock_withdraw_sp_until_timestamp
virtual const fc::time_point_sec & get_lock_withdraw_sp_until_timestamp() const =0
Generated on Thu Jun 9 2022 13:04:25 for Scorum by
1.9.1