-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce community history archive routine
This introduces logic needed to: - Create WakuMessageArchives and and indices from store waku messages - History archive torrent data to disk and create .torrent file from that - Seed and unseed history archive torrents as necessary - Starting/stopping the torrent client - Enabling/disabling community history support for individual components and starting/stopping the routine intervals accordingly This does not yet handle magnet links (#2568) Closes #2567
- Loading branch information
Showing
19 changed files
with
2,277 additions
and
156 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.
6 changes: 6 additions & 0 deletions
6
appdatabase/migrations/sql/1647957715_add_community_archives_info_table.up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE communities_archive_info ( | ||
community_id TEXT PRIMARY KEY ON CONFLICT REPLACE, | ||
magnetlink_clock INT NOT NULL DEFAULT 0, | ||
last_message_archive_end_date INT NOT NULL DEFAULT 0 | ||
) | ||
|
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
Oops, something went wrong.