-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…5732) Introduce `AutoXzDecoder` struct (which automatically detects xz-compressed files and transparently decompresses them) and use it in `download_file` to support compressed `genesis.json` and `config.json` files. Especially the former file may get quite large resulting in long downloads and wasted bandwidth. Being able to download compressed JSON files will reduce the time it takes for `neard init` to finish. For example, testnet’s `genesis.json` file is 5.5 GB and shrinks to 45 MB when compressed. The default download URLs still point to uncompressed files (since compressed ones are not yet available). Issue: #4951
- Loading branch information
Showing
3 changed files
with
258 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters