Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
share
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张振华
share
Commits
89bf4615
Commit
89bf4615
authored
May 06, 2019
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2044c0b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DPOS共识算法介绍.md
dpos共识/DPOS共识算法介绍.md
+2
-2
No files found.
dpos共识/DPOS共识算法介绍.md
View file @
89bf4615
...
...
@@ -147,7 +147,7 @@ Tendermint的共识是一种类Pos共识,指定固定的几个validator,每
a. 如果没有问题,就发出一条 pre-vote 投票消息,表示同意这个block,投一个肯定票,
b. 如果发现block里有非法交易,则投一个反对票,这些投票消息会被广播到所有validator节点,所以每个validator节点既会发出一个投票消息,又会收集别人的投票消息.
(4) 当发现收集到的同意投票数量超过 2/3时,就发出一个pre-commit 投票信息,这是第二阶段的投票了,这时每个节点也在监听并收集pre-commit的投票消息。
(5) 当一个validator节点收集到的 pre-commit 同意票数超过2/3时,说明这个block 是得到了大多数人同意的,可以放心把这个block写入本地的区块链,追加到末尾,即完成commit。同时区块高度增一,proposer节点索引也增1,进入下一轮(round), 开始提议新
快
。
(5) 当一个validator节点收集到的 pre-commit 同意票数超过2/3时,说明这个block 是得到了大多数人同意的,可以放心把这个block写入本地的区块链,追加到末尾,即完成commit。同时区块高度增一,proposer节点索引也增1,进入下一轮(round), 开始提议新
区块
。
## 2 超时处理
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment