Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[Minor] Start BlockPropagationManager immediately - don't wait for full sync #1398

Merged
merged 4 commits into from
May 6, 2019

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented May 3, 2019

PR description

Start BlockPropagationManager immediately - don't wait for full sync. BlockPropagationManager is responsible for listening for block announcements and updating the estimated height and total difficulty of our peers' chains. We need this to be running during fast sync so we can keep an accurate picture of our peers' states.

@mbaxter mbaxter requested a review from ajsutton May 3, 2019 15:07
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Was concerned about potentially attempting to import blocks before the world state download had completed for a fast sync but the worst case outcome of that is we print a WARN message. It's also exceptionally unlikely and probably indicates something weird going on since the fast sync pivot block is a short distance behind head which would put it out of the range of block propagation manager anyway.

@mbaxter mbaxter merged commit fd9aa05 into PegaSysEng:master May 6, 2019
notlesh pushed a commit to notlesh/pantheon that referenced this pull request May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants