Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
b976510b
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,发现更多精彩内容 >>
提交
b976510b
编写于
8月 16, 2017
作者:
K
Kevin Heifner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor changes from pr comments
上级
a2267410
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
19 deletion
+13
-19
contracts/eoslib/eosc.dox
contracts/eoslib/eosc.dox
+3
-2
plugins/chain_plugin/chain_plugin.cpp
plugins/chain_plugin/chain_plugin.cpp
+8
-14
plugins/chain_plugin/include/eos/chain_plugin/chain_plugin.hpp
...ns/chain_plugin/include/eos/chain_plugin/chain_plugin.hpp
+1
-1
plugins/producer_plugin/producer_plugin.cpp
plugins/producer_plugin/producer_plugin.cpp
+1
-2
未找到文件。
contracts/eoslib/eosc.dox
浏览文件 @
b976510b
...
...
@@ -6,9 +6,10 @@
@section intro Introduction to EOSC
`eosc` is a command line tool that interfaces with the REST api exposed by @ref eosd. In order to use `eosc` you will need to
have a local copy of `eosd` running and configured to load the 'eos::chain_api_plugin'. Currently, `eosc` does not
sign transactions, so in order for these instructions to work, `eosd` needs to be run with --skip-transaction-signatures.
have a local copy of `eosd` running and configured to load the 'eos::chain_api_plugin'.
As an easy way for developers to test functionality without dealing with keys, `eosd` can be run so that
Transaction signatures are not required.
...
./eosd --skip-transaction-signatures
...
...
...
plugins/chain_plugin/chain_plugin.cpp
浏览文件 @
b976510b
...
...
@@ -114,13 +114,13 @@ void chain_plugin::plugin_initialize(const variables_map& options) {
ilog
(
"Setting skip_transaction_signatures"
);
elog
(
"Setting skip_transaction_signatures
\n
"
"
\n
"
"**************************************
*
\n
"
"*
*
\n
"
"* --
CHAIN
IGNORING SIGNATURES -- *
\n
"
"* - TEST MODE
- *
\n
"
"* ------------------------------
-
*
\n
"
"*
*
\n
"
"**************************************
*
\n
"
);
"**************************************
\n
"
"* *
\n
"
"* --
EOSD
IGNORING SIGNATURES -- *
\n
"
"* - TEST MODE - *
\n
"
"* ------------------------------ *
\n
"
"* *
\n
"
"**************************************
\n
"
);
my
->
skip_flags
|=
chain_controller
::
skip_transaction_signatures
;
}
...
...
@@ -187,9 +187,6 @@ bool chain_plugin::accept_block(const chain::signed_block& block, bool currently
}
void
chain_plugin
::
accept_transaction
(
const
chain
::
SignedTransaction
&
trx
)
{
if
(
my
->
skip_flags
&
chain_controller
::
skip_transaction_signatures
)
{
wlog
(
"skip_transaction_signatures enabled"
);
}
chain
().
push_transaction
(
trx
,
my
->
skip_flags
);
}
...
...
@@ -201,7 +198,7 @@ bool chain_plugin::block_is_on_preferred_chain(const chain::block_id_type& block
return
chain
().
get_block_id_for_num
(
chain
::
block_header
::
num_from_id
(
block_id
))
==
block_id
;
}
bool
chain_plugin
::
skip
_transaction_signatures
()
const
{
bool
chain_plugin
::
is_skipping
_transaction_signatures
()
const
{
return
my
->
skip_flags
&
chain_controller
::
skip_transaction_signatures
;
}
...
...
@@ -329,9 +326,6 @@ read_write::push_block_results read_write::push_block(const read_write::push_blo
}
read_write
::
push_transaction_results
read_write
::
push_transaction
(
const
read_write
::
push_transaction_params
&
params
)
{
if
(
skip_flags
&
chain_controller
::
skip_transaction_signatures
)
{
wlog
(
"skip_transaction_signatures enabled"
);
}
auto
ptrx
=
db
.
push_transaction
(
params
,
skip_flags
);
auto
pretty_trx
=
db
.
transaction_to_variant
(
ptrx
);
return
read_write
::
push_transaction_results
{
params
.
id
(),
pretty_trx
};
...
...
plugins/chain_plugin/include/eos/chain_plugin/chain_plugin.hpp
浏览文件 @
b976510b
...
...
@@ -181,7 +181,7 @@ public:
bool
block_is_on_preferred_chain
(
const
chain
::
block_id_type
&
block_id
);
// return true if --skip-transaction-signatures passed to eosd
bool
skip
_transaction_signatures
()
const
;
bool
is_skipping
_transaction_signatures
()
const
;
// Only call this after plugin_startup()!
chain_controller
&
chain
();
...
...
plugins/producer_plugin/producer_plugin.cpp
浏览文件 @
b976510b
...
...
@@ -239,8 +239,7 @@ block_production_condition::block_production_condition_enum producer_plugin_impl
fc
::
time_point
now_fine
=
fc
::
time_point
::
now
();
fc
::
time_point_sec
now
=
now_fine
+
fc
::
microseconds
(
500000
);
if
(
app
().
get_plugin
<
chain_plugin
>
().
skip_transaction_signatures
())
{
//wlog("skip_transaction_signatures enabled");
if
(
app
().
get_plugin
<
chain_plugin
>
().
is_skipping_transaction_signatures
())
{
_production_skip_flags
|=
chain_controller
::
skip_transaction_signatures
;
}
// If the next block production opportunity is in the present or future, we're synced.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录