-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix for C++20: using aggregate ctors * fix for C++20: replace deprecated std::is_pod * feature: interfaces production and finality consensuses * feature: consensus selector * feature: timeline (of block production) * refactor: move time-meaning types from babe to up level (timeline) * refactor: move common production consensus types from babe to up level (timeline) * refactor: move block-appending mechanisms from babe to up level (timeline) * refactor: replace include-guard by pragma-once (for consensuses classes) * refactor: move consensus selection to timeline * refactor: extract application::AppConfiguration::SyncMethod to application::SyncMethod * feature: cacheable hash of block header * refactor: simplify BabeLottery * refactor: extract consensus::babe::Babe::State to consensus::SyncState (and rename corresponding events) * refactor: change JustificationObserver from struct to class * refactor: move babe_error.* to impl directory * refactor: add ProductionConsensus to base of Babe * refactor: register ConsensusSelector and Timeline in Injector * update: extend Timeline interface * update: inject Timeline to Application * fix: using of dangling references * refactor: babe digests util * refactor: block header hash operations * fix: tests Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
- Loading branch information
Showing
214 changed files
with
4,659 additions
and
3,529 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Copyright Soramitsu Co., Ltd. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
namespace kagome::application { | ||
|
||
enum class SyncMethod { | ||
/// Full sync. | ||
/// Download blocks fully and execute all of them | ||
Full, | ||
|
||
/// Fast sync | ||
/// Download all block headers, validate them. After that download state of | ||
/// last finalized block ans switch to full sync | ||
Fast, | ||
|
||
/// Download all block headers, validate them. Shutdown after that. Used for | ||
/// debug and making light-weight snapshots | ||
FastWithoutState, | ||
|
||
/// Download blocks with significant justifications | ||
Warp, | ||
|
||
/// Select fastest mode by time estimation | ||
Auto | ||
}; | ||
|
||
} |
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
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.