Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20 small swarms #1

Closed
3 tasks done
Floor97 opened this issue Feb 23, 2023 · 4 comments · Fixed by #10
Closed
3 tasks done

20 small swarms #1

Floor97 opened this issue Feb 23, 2023 · 4 comments · Fixed by #10
Assignees

Comments

@Floor97
Copy link
Collaborator

Floor97 commented Feb 23, 2023

Resources:
IPv8 community for content discovery and magnet link downloading
IPv8 community gossip-code

@ChelseaGuan
Copy link
Collaborator

Initially, I tried to use the download function from TorrentEngine in trustchain.musicdao. However, there were issues with complex dependencies, so I tried implementing a simpler version of the download function in trustchain.detoks.
Right now, I have a problem with sessionManager.fetchMagnet(magnet, 10), since it always returns null, so the program cannot continue.

@Floor97 Floor97 self-assigned this Mar 8, 2023
@ChelseaGuan
Copy link
Collaborator

By manually uploading the Creative Commons videos to archive.org and using the torrent file it generates, we are now able to download the videos from the torrent in detoks. It is likely because archive.org provides better trackers and actually has seeders for the torrents. Furthermore, it downloading torrents works with the gossiper.

@Floor97
Copy link
Collaborator Author

Floor97 commented Mar 13, 2023

The torrent files were not downloading is because the original torrent files only contained one video at a time. Since this was not enough for the cache size it didn't start the downloading of the videos (code). Since it is beneficial to be able to boot peers with multiple torrents I have been looking into being able to grab all files wth a .torrent extension from raw instead of just the default. However, this involves reflection, and currently am still debugging as it is not printing any errors.

@Floor97
Copy link
Collaborator Author

Floor97 commented Mar 15, 2023

Since the dummy nodes can select torrents dynamically from a list, the detoks.torrent will remain the only hardcoded torrent on boot of the superapp. Instead to test the network the 20 torrents will be added to the torrents folder for the dummy nodes only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants