1 // Copyright (c) 2017 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
6 Package netsync implements a concurrency safe block syncing protocol. The
7 SyncManager communicates with connected peers to perform an initial block
8 download, keep the chain and unconfirmed transaction pool in sync, and announce
9 new blocks connected to the chain. Currently the sync manager selects a single
10 sync peer that it downloads all blocks from until it is up to date with the
11 longest chain the sync peer is aware of.