ZcashLightClientKit/Sources/ZcashLightClientKit
Michal Fousek 6bbaad4cb1 [#740] Refator blocks downloading in CompactBlockProcessor
Closes #740

`CompactBlockDownloading` protocol is renamed to `BlockDownloaderService`. `CompactBlockDownloader` is renamed to `BlockDownloaderServiceImpl`.

What is the motivation for this rename?
Goal of this change is to extract code from `CompactBlockProcessor` which is related to downloading. So naturaly it should be called "downloader".
But `CompactBlockDownloader` was already taken. After analysis of `CompactBlockDownloading` and `CompactBlockDownloader` I found out that
`CompactBlockDownloader` doesn't download blocks exactly. It's more like abstraction over `LightWalletService`. And it does very similar job to
`LightWalletService`. That is why I decided to rename it to "service".

What is the motivation for protoco/impl naming scheme?
First `BlockDownloaderService` protocol doesn't describe capability in my eyes. It describe what something is. Also `BlockDownloaderServicing` sounds
strange. I agree that add suffix "Impl" to class name isn't super nice. But it is acceptable. And it makes sense to use nicer type name
(e.g. `BlockDownloaderService`) for protocol because it's used on much more places in the code.

- Added `BlockDownloader` protocol and `BlockDownloaderImpl` class. The code related to downloading was exctracted to this class.
2023-01-31 15:24:41 +01:00
..
Block [#740] Refator blocks downloading in CompactBlockProcessor 2023-01-31 15:24:41 +01:00
Constants
DAO [#735] Use Swiftlint for the SDK 2023-01-27 11:44:25 +01:00
Entity [#556] Rename Transaction to ZCashTransaction 2023-01-23 10:01:07 +01:00
Extensions
Metrics
Model
Providers
Repository [#556] Rename Transaction to ZCashTransaction 2023-01-23 10:01:07 +01:00
Resources/checkpoints [#415] Release 0.18.0 beta (#750) 2023-01-30 19:33:20 -03:00
Rust
Service [#556] Rename Transaction to ZCashTransaction 2023-01-23 10:01:07 +01:00
Synchronizer [#740] Refator blocks downloading in CompactBlockProcessor 2023-01-31 15:24:41 +01:00
Tool
Transaction [#556] Rename Transaction to ZCashTransaction 2023-01-23 10:01:07 +01:00
Utils [#747] Remove SampleLogger and replace it with OSLogger (#748) 2023-01-26 18:14:07 +01:00
Initializer.swift [#740] Refator blocks downloading in CompactBlockProcessor 2023-01-31 15:24:41 +01:00
Synchronizer.swift [#556] Rename Transaction to ZCashTransaction 2023-01-23 10:01:07 +01:00