Fix preferred seeds configuration
When using network: "test", we shouldn’t default to any public seed
node. This change makes sure that the “preferredSeeds” configuration var
is only given a value when network is main.
6 files changed
+28
-39
8858cefc
→
3560e006
modified radicle-cli/examples/rad-config.md
@@ -5,14 +5,16 @@ In its simplest form, `rad config` prints the current configuration.
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -23,7 +25,7 @@ $ rad config
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/tests/commands.rs
@@ -10,7 +10,7 @@ use radicle::node::Handle as _;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -237,7 +237,8 @@ fn rad_inspect() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1216,7 +1217,7 @@ fn rad_init_sync_preferred() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1248,7 +1249,7 @@ fn rad_init_sync_timeout() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1824,7 +1825,7 @@ fn rad_patch_open_explore() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/environment.rs
@@ -22,7 +22,7 @@ use radicle::node::Database;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -91,7 +91,7 @@ impl Environment {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/node/address.rs
@@ -171,7 +171,7 @@ impl KnownAddress {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/node/config.rs
@@ -64,6 +64,14 @@ impl Network {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/profile.rs
@@ -14,7 +14,7 @@ use std::io::Write;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -122,7 +122,7 @@ pub struct Config {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -136,12 +136,14 @@ pub struct Config {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -193,30 +195,6 @@ impl Config {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|