dcrd/internal/netsync
Dave Collins fea818c297
netsync: Remove orphan block handling.
This removes all orphan block handling from the syncing process and is
part of the overall effort to move to full headers-first syncing as
opposed to the current partial header-first checkpoint-based process.

It should be noted that this change is made in such a way that the
syncing process continues to work properly, however, it is only intended
to be an intermediate step, and, as such, it does result in suboptimal
behavior once it passes the final checkpoint.  That will no longer be
the case one the entire sync process conversion is complete.
2021-01-21 23:20:18 -06:00
..
doc.go netsync: Add package documentation. 2020-12-15 13:26:57 -06:00
interface.go netsync/server: Update peer heights directly. 2021-01-07 17:15:36 -06:00
log.go netsync: Split blockmanager into separate package. 2020-12-15 13:26:30 -06:00
manager.go netsync: Remove orphan block handling. 2021-01-21 23:20:18 -06:00
README.md netsync: Add package documentation. 2020-12-15 13:26:57 -06:00

netsync

Build Status ISC License Doc

Package netsync implements a concurrency safe block syncing protocol.

Overview

The provided implementation of SyncManager communicates with connected peers to perform an initial block download, keep the chain in sync, and announce new blocks connected to the chain. Currently the sync manager selects a single sync peer that it downloads all blocks from until it is up to date with the longest chain the sync peer is aware of.

License

Package netsync is licensed under the copyfree ISC License.