Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace Arc<AtomicBool> with tokio::sync::watch channel * Nits * Priority latency when selecting peer for sync * Try headers request action when block download batches are empty * Rename to DownloadingInv * Rename BlockDownloadManager to BlockDownloader * Reorg strategy module * Rename to BlockFirstStrategy and HeadersFirstStrategy * Nit * Revamp blocks-first * Set sync status to Importing when all missing blocks are downloaded * Fix lost sync action on chain_sync.add_new_peer() * Start chain sync only with enough peers * TODO * Handle block annoucements via inv * Handle block announce via headers * Add log prefix in network tests * Refactor headers-first using new BlockDownloader * Fix test * Fix clippy * Abstract BlockListDownloader * Remove DownloadedHeaders * Separate missing_block_list() * Separate schedule_block_download() * Overhaul HeadersFirstStrategy * Overhaul BlocksFirstStrategy * Remove unused dep in subcoin-network * Reorg sync module in subcoin-network * Renamings * Fix test * Move downloaded_blocks_count into BlockDownloader * Rename worker.rs to net_processor.rs * Rename network_api.rs
- Loading branch information