Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
cfccb9e2
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,发现更多精彩内容 >>
提交
cfccb9e2
编写于
11月 11, 2017
作者:
K
Kevin Heifner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Another account_name account_name #665
上级
cff8a872
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
9 deletion
+9
-9
plugins/account_history_plugin/account_history_plugin.cpp
plugins/account_history_plugin/account_history_plugin.cpp
+1
-1
plugins/account_history_plugin/include/eos/account_history_plugin/account_history_plugin.hpp
...ude/eos/account_history_plugin/account_history_plugin.hpp
+4
-4
plugins/account_history_plugin/include/eos/account_history_plugin/account_transaction_history_object.hpp
...unt_history_plugin/account_transaction_history_object.hpp
+4
-4
未找到文件。
plugins/account_history_plugin/account_history_plugin.cpp
浏览文件 @
cfccb9e2
...
...
@@ -309,7 +309,7 @@ void account_history_plugin_impl::applied_block(const signed_block& block)
for
(
const
auto
&
account_name
:
trx
.
scope
)
{
db
.
create
<
account_transaction_history_object
>
([
&
trx
,
&
account_name
](
account_transaction_history_object
&
account_transaction_history
)
{
account_transaction_history
.
account_
name
=
account_name
;
account_transaction_history
.
name
=
account_name
;
account_transaction_history
.
transaction_id
=
trx
.
id
();
});
}
...
...
plugins/account_history_plugin/include/eos/account_history_plugin/account_history_plugin.hpp
浏览文件 @
cfccb9e2
...
...
@@ -42,7 +42,7 @@ public:
struct
get_transactions_params
{
chain
::
account_name
account_name
;
name
account_name
;
optional
<
uint32_t
>
skip_seq
;
optional
<
uint32_t
>
num_seq
;
};
...
...
@@ -63,16 +63,16 @@ public:
chain
::
public_key_type
public_key
;
};
struct
get_key_accounts_results
{
vector
<
chain
::
account_
name
>
account_names
;
vector
<
name
>
account_names
;
};
get_key_accounts_results
get_key_accounts
(
const
get_key_accounts_params
&
params
)
const
;
struct
get_controlled_accounts_params
{
chain
::
account_
name
controlling_account
;
name
controlling_account
;
};
struct
get_controlled_accounts_results
{
vector
<
chain
::
account_
name
>
controlled_accounts
;
vector
<
name
>
controlled_accounts
;
};
get_controlled_accounts_results
get_controlled_accounts
(
const
get_controlled_accounts_params
&
params
)
const
;
};
...
...
plugins/account_history_plugin/include/eos/account_history_plugin/account_transaction_history_object.hpp
浏览文件 @
cfccb9e2
...
...
@@ -29,7 +29,7 @@ class account_transaction_history_object : public chainbase::object<chain::accou
OBJECT_CTOR
(
account_transaction_history_object
)
id_type
id
;
account_name
account_
name
;
account_name
name
;
transaction_id_type
transaction_id
;
};
...
...
@@ -40,10 +40,10 @@ using account_transaction_history_multi_index = chainbase::shared_multi_index_co
account_transaction_history_object
,
indexed_by
<
ordered_unique
<
tag
<
by_id
>
,
BOOST_MULTI_INDEX_MEMBER
(
account_transaction_history_object
,
account_transaction_history_object
::
id_type
,
id
)
>
,
hashed_non_unique
<
tag
<
by_account_name
>
,
BOOST_MULTI_INDEX_MEMBER
(
account_transaction_history_object
,
account_name
,
account_
name
),
std
::
hash
<
account_name
>>
,
hashed_non_unique
<
tag
<
by_account_name
>
,
BOOST_MULTI_INDEX_MEMBER
(
account_transaction_history_object
,
account_name
,
name
),
std
::
hash
<
account_name
>>
,
hashed_unique
<
tag
<
by_account_name_trx_id
>
,
composite_key
<
account_transaction_history_object
,
member
<
account_transaction_history_object
,
account_name
,
&
account_transaction_history_object
::
account_
name
>
,
member
<
account_transaction_history_object
,
account_name
,
&
account_transaction_history_object
::
name
>
,
member
<
account_transaction_history_object
,
transaction_id_type
,
&
account_transaction_history_object
::
transaction_id
>
>
,
composite_key_hash
<
std
::
hash
<
account_name
>
,
std
::
hash
<
transaction_id_type
>
>
...
...
@@ -57,5 +57,5 @@ typedef chainbase::generic_index<account_transaction_history_multi_index> accoun
CHAINBASE_SET_INDEX_TYPE
(
eosio
::
account_transaction_history_object
,
eosio
::
account_transaction_history_multi_index
)
FC_REFLECT
(
eosio
::
account_transaction_history_object
,
(
account_
name
)(
transaction_id
)
)
FC_REFLECT
(
eosio
::
account_transaction_history_object
,
(
name
)(
transaction_id
)
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录