Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
2fd79f4e
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2fd79f4e
编写于
4月 13, 2017
作者:
N
Nathan Hourt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Whitespace cleanup
上级
556ca4e1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
20 deletion
+30
-20
libraries/chain/include/eos/chain/global_property_object.hpp
libraries/chain/include/eos/chain/global_property_object.hpp
+30
-20
未找到文件。
libraries/chain/include/eos/chain/global_property_object.hpp
浏览文件 @
2fd79f4e
...
...
@@ -45,13 +45,13 @@ namespace eos { namespace chain {
*/
class
global_property_object
:
public
chainbase
::
object
<
global_property_object_type
,
global_property_object
>
{
OBJECT_CTOR
(
global_property_object
,
(
active_producers
))
OBJECT_CTOR
(
global_property_object
,
(
active_producers
))
id_type
id
;
chain_parameters
parameters
;
optional
<
chain_parameters
>
pending_parameters
;
id_type
id
;
chain_parameters
parameters
;
optional
<
chain_parameters
>
pending_parameters
;
shared_vector
<
producer_id_type
>
active_producers
;
shared_vector
<
producer_id_type
>
active_producers
;
};
/**
...
...
@@ -65,34 +65,44 @@ namespace eos { namespace chain {
*/
class
dynamic_global_property_object
:
public
chainbase
::
object
<
dynamic_global_property_object_type
,
dynamic_global_property_object
>
{
OBJECT_CTOR
(
dynamic_global_property_object
)
id_type
id
;
uint32_t
head_block_number
=
0
;
block_id_type
head_block_id
;
time_point_sec
time
;
producer_id_type
current_producer
;
uint32_t
accounts_registered_this_interval
=
0
;
OBJECT_CTOR
(
dynamic_global_property_object
)
id_type
id
;
uint32_t
head_block_number
=
0
;
block_id_type
head_block_id
;
time_point_sec
time
;
producer_id_type
current_producer
;
uint32_t
accounts_registered_this_interval
=
0
;
/**
* Every time a block is missed this increases by
* RECENTLY_MISSED_COUNT_INCREMENT,
* every time a block is found it decreases by
* RECENTLY_MISSED_COUNT_DECREMENT. It is
* never less than 0.
*
* If the recently_missed_count hits 2*UNDO_HISTORY then no new blocks may be pushed.
*/
uint32_t
recently_missed_count
=
0
;
/**
/**
* The current absolute slot number. Equal to the total
* number of slots since genesis. Also equal to the total
* number of missed slots plus head_block_number.
*/
uint64_t
current_aslot
=
0
;
uint64_t
current_aslot
=
0
;
/**
/**
* used to compute producer participation.
*/
fc
::
uint128_t
recent_slots_filled
;
fc
::
uint128_t
recent_slots_filled
;
/**
/**
* dynamic_flags specifies chain state properties that can be
* expressed in one bit.
*/
uint32_t
dynamic_flags
=
0
;
uint32_t
dynamic_flags
=
0
;
uint32_t
last_irreversible_block_num
=
0
;
uint32_t
last_irreversible_block_num
=
0
;
};
using
global_property_multi_index
=
chainbase
::
shared_multi_index_container
<
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录