This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
[NC-1273] Start of fast sync downloader #613
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f2d5f68
Add support for initiating fast sync to DefaultSynchronizer, starting…
ajsutton cb8cfb2
Wait for a minimum number of peers to be available before starting fa…
ajsutton 8b10aed
Add tests for fast sync waiting for peers and the overall coordinatio…
ajsutton 6f3abb0
Select pivot block.
ajsutton 27b044c
Fetch the pivot block header.
ajsutton d813ffc
Switch to throwing an exception to abort the fast sync pipeline inste…
ajsutton 6ecea9c
waitForSuitablePeers doesn't need to return a FastSyncState.
ajsutton 89b134d
Add a basic test for downloadPivotBlockHeader.
ajsutton bf5188e
Create a task specifically for getting the pivot block header so that…
ajsutton f67c9f9
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton 815d385
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton c1e1c2f
Add basic tests for GetPivotBlockHeader.
ajsutton b7266d1
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton 32bdd13
Add check to ensure that a majority of peers (which have the pivot bl…
ajsutton ae0a318
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton 7f42f9a
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton c43524a
Merge branch 'master' into NC-2136
ajsutton 5329db7
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton 1ac4f4f
Throw exceptions all the way back out the top instead of mapping to a…
ajsutton 3598197
Move PivotBlockRetriever to the fastsync package.
ajsutton 6a7fac0
Call wait for peers directly instead of sending to the worker pool.
ajsutton 1bdc38d
Simplify check for any available peers.
ajsutton 1ba9c7f
Pull isRetryingError and assignPeer up to AbstractRetryingPeerTask so…
ajsutton 599af66
Merge branch 'NC-2136' of github.com:ajsutton/pantheon into NC-2136
ajsutton d0b6fac
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton 0f2ec34
Merge branch 'master' of github.com:PegaSysEng/pantheon into NC-2136
ajsutton e733789
Ensure we repeatedly print messages to indicate we're waiting for a p…
ajsutton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious - why prefer
==
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purely ease of reading and because I was confused by the
.equals
for a bit thinking it wasn't actually an enum.