Skip to content

Commit

Permalink
Make libtor on by default for *nix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
brianp committed Dec 20, 2023
1 parent 3396168 commit 1c2f0e4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/base_node_binaries.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"cross": false,
"target_cpu": "x86-64",
"target_bins": "--bin minotari_node --bin minotari_console_wallet --bin minotari_merge_mining_proxy --bin minotari_miner",
"features": "libtor, safe"
"features": "default, safe"
},
{
"name": "macos-arm64",
Expand All @@ -38,7 +38,7 @@
"cross": false,
"target_cpu": "generic",
"target_bins": "--bin minotari_node --bin minotari_console_wallet --bin minotari_merge_mining_proxy --bin minotari_miner",
"features": "libtor, safe",
"features": "default, safe",
"build_enabled": true
},
{
Expand Down
1 change: 1 addition & 0 deletions applications/minotari_console_wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ features = ["crossterm"]
tari_features = { path = "../../common/tari_features"}

[features]
default = ["libtor"]
libtor = ["tari_libtor"]
grpc = []

Expand Down
2 changes: 1 addition & 1 deletion applications/minotari_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tonic = { version = "0.6.2", features = ["tls", "tls-roots" ] }
tari_metrics = { path = "../../infrastructure/metrics", optional = true, features = ["server"] }

[features]
default = ["metrics"]
default = ["metrics", "libtor"]
metrics = ["tari_metrics", "tari_comms/metrics"]
safe = []
libtor = ["tari_libtor"]
Expand Down
2 changes: 1 addition & 1 deletion applications/minotari_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl Default for BaseNodeConfig {
grpc_tls_enabled: false,
mining_enabled: false,
identity_file: PathBuf::from("config/base_node_id.json"),
use_libtor: false,
use_libtor: true,
tor_identity_file: PathBuf::from("config/base_node_tor_id.json"),
p2p,
db_type: DatabaseType::Lmdb,
Expand Down
2 changes: 1 addition & 1 deletion base_layer/wallet/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl Default for WalletConfig {
recovery_retry_limit: 3,
fee_per_gram: 5,
num_required_confirmations: 3,
use_libtor: false,
use_libtor: true,
identity_file: None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/config/presets/c_base_node_c.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#identity_file = "config/base_node_id.json"

# Spin up and use a built-in Tor instance, only works on macos/linux and must comment out 'tor.control_address' below.
# This requires that the base node was built with the optional "libtor" feature flag. (default = false)
# This requires that the base node was built with the optional "libtor" feature flag. (default = true)
#use_libtor = false

# A path to the file that stores the tor hidden service private key, if using the tor transport.
Expand Down
2 changes: 1 addition & 1 deletion common/config/presets/d_console_wallet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#num_required_confirmations = 3

# Spin up and use a built-in Tor instance, only works on macos/linux and must comment out 'tor.control_address' below.
# This requires that the base node was built with the optional "libtor" feature flag. (default = false)
# This requires that the base node was built with the optional "libtor" feature flag. (default = true)
#use_libtor = false

# A path to the file that stores your node identity and secret key (default = "none")
Expand Down

0 comments on commit 1c2f0e4

Please sign in to comment.