Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge torrust#511: New feature: a new console command to create rando…
…m test torrents c92e41c feat: add a new console command to create random test torrents (Jose Celano) Pull request description: You can execute it with: ``` cargo run --bin create_test_torrent ./output/test/torrents ``` All fields are always the same except for the content and hashes. ```json { "announce-list": [ [ "https://tracker.torrust-demo.com/announce" ] ], "httpseeds": [ "https://seeder.torrust-demo.com/seed" ], "info": { "length": 37, "name": "file-e1fdbe05-4d33-4748-bab0-6abd297f5230.txt", "path": [ "file-e1fdbe05-4d33-4748-bab0-6abd297f5230.txt" ], "piece length": 16384, "pieces": "<hex>AA 2C 11 CB 66 F4 CE D8 CA AA 09 2C 40 AC EA BC 95 34 44 F8</hex>" }, "nodes": [ [ "99.236.6.144", 6881 ], [ "91.109.195.156", 1996 ] ] } ``` Output dir must exist. ACKs for top commit: josecelano: ACK c92e41c Tree-SHA512: 7f35e33ddee9e471c6cf699e905289e305b707a64ceb30980f72274bee43e31b2d2d25d3616acfa621db363c30e8ccf986b652a84869a1d147b3e73d0aeb3d7a
- Loading branch information