Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fast sync #8884

Merged
38 commits merged into from
Jun 22, 2021
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c7d1ad8
State sync
arkpar May 18, 2021
224ec1f
Importing state fixes
arkpar May 19, 2021
eeda74e
Bugfixes
arkpar May 21, 2021
1722f9b
Sync with proof
arkpar May 21, 2021
c3e378c
Status reporting
arkpar May 21, 2021
e755467
Unsafe sync mode
arkpar May 21, 2021
e610196
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar May 21, 2021
783e794
Sync test
arkpar May 22, 2021
b02b515
Cleanup
arkpar May 22, 2021
d22f27e
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar May 26, 2021
4895459
Apply suggestions from code review
arkpar May 26, 2021
4d4a05a
Merge branch 'a-storage-sync' of github.com:paritytech/substrate into…
arkpar May 26, 2021
753d412
set_genesis_storage
arkpar May 26, 2021
22462f3
Extract keys from range proof
arkpar May 27, 2021
0e99e07
Detect iter completion
arkpar May 27, 2021
dff08a4
Download and import bodies with fast sync
arkpar May 27, 2021
c6a263a
Replaced meta updates tuple with a struct
arkpar May 27, 2021
2eb647b
Fixed reverting finalized state
arkpar May 27, 2021
5f97da2
Reverted timeout
arkpar May 27, 2021
fb4926f
Typo
arkpar May 27, 2021
c287be3
Doc
arkpar May 27, 2021
e8df4ac
Doc
arkpar May 27, 2021
bad1124
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar May 27, 2021
730d619
Fixed light client test
arkpar May 27, 2021
7a8e682
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar May 31, 2021
4d665f3
Fixed error handling
arkpar Jun 3, 2021
4b34885
Tweaks
arkpar Jun 3, 2021
bf21352
More UpdateMeta changes
arkpar Jun 3, 2021
2f07284
Rename convert_transaction
arkpar Jun 4, 2021
5a99ef1
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar Jun 4, 2021
13a68e4
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar Jun 5, 2021
08079f4
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar Jun 16, 2021
fb882d4
Apply suggestions from code review
arkpar Jun 17, 2021
21c8c35
Apply suggestions from code review
arkpar Jun 17, 2021
6e5b91c
Code review suggestions
arkpar Jun 17, 2021
47583d9
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar Jun 17, 2021
7ff27dd
Fixed count handling
arkpar Jun 17, 2021
fe1d210
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
arkpar Jun 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' of github.com:paritytech/substrate into a-stora…
…ge-sync
  • Loading branch information
arkpar committed Jun 22, 2021
commit fe1d21042dacc3d0a5fb5e1c526db3ad561c800f
40 changes: 1 addition & 39 deletions client/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,45 +65,6 @@

#![forbid(unsafe_code)]
#![warn(missing_docs)]
pub use sp_consensus_babe::{
BabeApi, ConsensusLog, BABE_ENGINE_ID, BabeEpochConfiguration, BabeGenesisConfiguration,
AuthorityId, AuthorityPair, AuthoritySignature, BabeAuthorityWeight, VRF_OUTPUT_LENGTH,
digests::{
CompatibleDigestItem, NextEpochDescriptor, NextConfigDescriptor, PreDigest,
PrimaryPreDigest, SecondaryPlainPreDigest,
},
};
pub use sp_consensus::SyncOracle;
pub use sc_consensus_slots::SlotProportion;
use std::{
collections::HashMap, sync::Arc, u64, pin::Pin, borrow::Cow, convert::TryInto,
time::Duration,
};
use sp_consensus::{ImportResult, CanAuthorWith, import_queue::BoxJustificationImport};
use sp_core::crypto::Public;
use sp_application_crypto::AppKey;
use sp_keystore::{SyncCryptoStorePtr, SyncCryptoStore};
use sp_runtime::{
generic::{BlockId, OpaqueDigestItemId}, Justifications,
traits::{Block as BlockT, Header, DigestItemFor, Zero},
};
use sp_api::{ProvideRuntimeApi, NumberFor};
use parking_lot::Mutex;
use sp_inherents::{CreateInherentDataProviders, InherentDataProvider, InherentData};
use sc_telemetry::{telemetry, TelemetryHandle, CONSENSUS_TRACE, CONSENSUS_DEBUG};
use sp_consensus::{
BlockImport, Environment, Proposer, BlockCheckParams, StateAction,
ForkChoiceStrategy, BlockImportParams, BlockOrigin, Error as ConsensusError,
SelectChain, SlotData, import_queue::{Verifier, BasicQueue, DefaultImportQueue, CacheKeyId},
};
use sp_consensus_babe::inherents::BabeInherentData;
use sc_client_api::{
backend::AuxStore, BlockchainEvents, ProvideUncles, UsageProvider
};
use sp_block_builder::BlockBuilder as BlockBuilderApi;
use futures::channel::mpsc::{channel, Sender, Receiver};
use futures::channel::oneshot;
use retain_mut::RetainMut;

use std::{
borrow::Cow, collections::HashMap, convert::TryInto, pin::Pin, sync::Arc, time::Duration, u64,
Expand Down Expand Up @@ -140,6 +101,7 @@ use sp_consensus::{
import_queue::{BasicQueue, CacheKeyId, DefaultImportQueue, Verifier},
BlockCheckParams, BlockImport, BlockImportParams, BlockOrigin, Environment,
Error as ConsensusError, ForkChoiceStrategy, Proposer, SelectChain, SlotData,
StateAction,
};
use sp_consensus_babe::inherents::BabeInherentData;
use sp_consensus_slots::Slot;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.