Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
d12426b6
Unverified
Commit
d12426b6
authored
Aug 20, 2018
by
Arkadiy Paronyan
Committed by
GitHub
Aug 20, 2018
Browse files
Merge pull request #3 from paritytech/rh-continue-rounds
fix interval logic
parents
50bbb4c7
fa74d565
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
d12426b6
This diff is collapsed.
Click to expand it.
consensus/src/service.rs
View file @
d12426b6
...
...
@@ -224,7 +224,11 @@ impl Service {
interval
.map_err
(|
e
|
debug!
(
"Timer error: {:?}"
,
e
))
.for_each
(
move
|
_
|
{
if
let
Ok
(
best_block
)
=
c
.best_block_header
()
{
let
hash
=
best_block
.hash
();
if
hash
==
prev_best
&&
s
.live_agreement
()
!=
Some
(
hash
)
{
let
last_agreement
=
s
.last_agreement
();
let
can_build_upon
=
last_agreement
.map_or
(
true
,
|
x
|
!
x
.live
||
x
.parent_hash
!=
hash
);
if
hash
==
prev_best
&&
can_build_upon
{
debug!
(
"Starting consensus round after a timeout"
);
start_bft
(
best_block
,
s
.clone
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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