Skip to content

Commit

Permalink
Intrododuce NodeConfig.TorrentConfig and CLI flags
Browse files Browse the repository at this point in the history
This commit introduces a new `TorrentConfig` as per #2563 with dedicated
default values and new options/flags for the status-go CLI.

Since it's part of `NodeConfig`, which is stored per user in the
database, this commit also adds a migration script that adds a new
`torrent_config` table and database APIs to insert and retreive the
torrent config.

Closes #2563
  • Loading branch information
0x-r4bbit committed Mar 21, 2022
1 parent 64b8ad5 commit 8692625
Show file tree
Hide file tree
Showing 37 changed files with 363 additions and 254 deletions.
40 changes: 32 additions & 8 deletions appdatabase/migrations/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE torrent_config (
enabled BOOLEAN DEFAULT false,
port UNSIGNED INT,
data_dir VARCHAR NOT NULL,
torrent_dir VARCHAR NOT NULL,
synthetic_id VARCHAR DEFAULT 'id' PRIMARY KEY
) WITHOUT ROWID;

Loading

0 comments on commit 8692625

Please sign in to comment.