ledgerwatch / erigon-lib

Dependencies of Erigon project, rewritten from scratch and licensed under Apache 2.0
Apache License 2.0
59 stars 93 forks source link

downloader: speedup "--downloader.verify" mode #997

Closed AskAlexSharov closed 1 year ago

AskAlexSharov commented 1 year ago

deduplicate logic create more producer goroutines (torrent lib does limiting internally amount of consumers/disk-readers/hashers by 2, and it's enough because we can verify multiple files in parallel) move flag from "downloader torrent_hashes --verify" to "downloader --verify"