Skip to content

Commit

Permalink
Remove optimistic syncing altogether (#1539)
Browse files Browse the repository at this point in the history
* Remove optimistic syncing altogether

* Remove obsolete comment
  • Loading branch information
tomaka authored Jan 2, 2024
1 parent c05c4c3 commit 8762039
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2,221 deletions.
12 changes: 4 additions & 8 deletions lib/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
//! > **Note**: While the above summary is a bit abstract, in practice it is almost always
//! > done by exchanging messages through a peer-to-peer network.
//!
//! Multiple strategies exist for syncing, one for each sub-module, and which one to employ
//! depends on the amount of information that is desired (e.g. is it required to know the header
//! and/or body of every single block, or can some blocks be skipped?) and the distance between
//! the highest block of the local chain and the highest block available on the remotes.
//!
//! The [`all`] module represents a good combination of all syncing strategies and should be the
//! default choice for most clients.
//! There exists multiple syncing strategies, depending on the amount of information that is.
//! desired and the distance between the highest block of the local chain and the highest block
//! available from the syncing sources.
//! The [`all`] module provides a state machine that combines several syncing strategies into one.
//!
//! # Security considerations
//!
Expand Down Expand Up @@ -70,6 +67,5 @@
pub mod all;
pub mod all_forks;
pub mod optimistic;
pub mod para;
pub mod warp_sync;
Loading

0 comments on commit 8762039

Please sign in to comment.