Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
4bc5b4e8
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,发现更多精彩内容 >>
提交
4bc5b4e8
编写于
12月 19, 2017
作者:
K
Kevin Heifner
提交者:
Matt Witherspoon
12月 20, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge pull request #979 from EOSIO/p2p-stat-271-gh916-2
P2p stat 271 gh916 2 (reapplied on noon branch)
上级
a01245f1
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
236 addition
and
288 deletion
+236
-288
README.md
README.md
+28
-31
plugins/net_plugin/include/eos/net_plugin/protocol.hpp
plugins/net_plugin/include/eos/net_plugin/protocol.hpp
+6
-1
plugins/net_plugin/net_plugin.cpp
plugins/net_plugin/net_plugin.cpp
+202
-256
未找到文件。
README.md
浏览文件 @
4bc5b4e8
...
...
@@ -399,9 +399,6 @@ This command will generate 2 data folders for each instance of the node: `tn_dat
You should see a following response:
```
bash
adding
hostname
ip-XXX-XXX-XXX
found interface 127.0.0.1
found interface XXX.XX.XX.XX
spawning child, programs/eosd/eosd
--skip-transaction-signatures
--data-dir
tn_data_0
spawning child, programs/eosd/eosd
--skip-transaction-signatures
--data-dir
tn_data_1
```
...
...
plugins/net_plugin/include/eos/net_plugin/protocol.hpp
浏览文件 @
4bc5b4e8
...
...
@@ -44,7 +44,8 @@ namespace eosio {
bad_transaction
,
///< the peer sent a transaction that failed verification
validation
,
///< the peer sent a block that failed validation
benign_other
,
///< reasons such as a timeout. not fatal but warrant resetting
fatal_other
///< a catch-all for errors we don't have discriminated
fatal_other
,
///< a catch-all for errors we don't have discriminated
authentication
///< peer failed authenicatio
};
constexpr
auto
reason_str
(
go_away_reason
rsn
)
{
...
...
@@ -58,6 +59,7 @@ namespace eosio {
case
unlinkable
:
return
"unlinkable block received"
;
case
bad_transaction
:
return
"bad transaction"
;
case
validation
:
return
"invalid block"
;
case
authentication
:
return
"authentication failure"
;
case
fatal_other
:
return
"some other failure"
;
case
benign_other
:
return
"some other non-fatal condition"
;
default
:
return
"some crazy reason"
;
...
...
@@ -101,6 +103,7 @@ namespace eosio {
template
<
typename
T
>
struct
select_ids
{
select_ids
()
:
mode
(
none
),
pending
(
0
),
ids
()
{}
id_list_modes
mode
;
uint32_t
pending
;
vector
<
T
>
ids
;
...
...
@@ -111,11 +114,13 @@ namespace eosio {
using
ordered_blk_ids
=
select_ids
<
block_id_type
>
;
struct
notice_message
{
notice_message
()
:
known_trx
(),
known_blocks
()
{}
ordered_txn_ids
known_trx
;
ordered_blk_ids
known_blocks
;
};
struct
request_message
{
request_message
()
:
req_trx
(),
req_blocks
()
{}
ordered_txn_ids
req_trx
;
ordered_blk_ids
req_blocks
;
};
...
...
plugins/net_plugin/net_plugin.cpp
浏览文件 @
4bc5b4e8
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录