New feature: a new console command to create random test torrents#511
Merged
josecelano merged 1 commit intotorrust:developfrom Feb 29, 2024
Conversation
You can execute it with: ``` cargo run --bin create_test_torrent ./output/test/torrents ``` Folders must be created.
Member
Author
|
ACK c92e41c |
This was referenced Feb 29, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You can execute it with:
All fields are always the same except for the content and hashes.
{ "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.