Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
bitcoindDataDir = "${config.devenv.root}/.devenv/state/bitcoind";
lightningClnDataDir = "${config.devenv.root}/.devenv/state/cln";

poolConfig = builtins.fromTOML (builtins.readFile ./config/pool.toml);
minerConfig = builtins.fromTOML (builtins.readFile ./config/miner.toml);
poolConfig = builtins.fromTOML (builtins.readFile ./config/shared/pool.toml);
minerConfig = builtins.fromTOML (builtins.readFile ./config/shared/miner.toml);

# Function to add logging logic to any command
withLogging = command: logFile: ''
Expand Down Expand Up @@ -67,7 +67,7 @@ in {
echo "Mint is up. Starting Local Pool..."
cargo -C roles/pool -Z unstable-options run -- \
-c ${config.devenv.root}/roles/pool/config-examples/pool-config-local-tp-example.toml \
-g ${config.devenv.root}/config/pool.toml
-g ${config.devenv.root}/config/shared/pool.toml
'' "pool.log";
};
jd-server = {
Expand All @@ -91,7 +91,7 @@ in {
echo "Pool is up. Starting Proxy..."
cargo -C roles/translator -Z unstable-options run -- \
-c ${config.devenv.root}/roles/translator/config-examples/tproxy-config-local-jdc-example.toml \
-g ${config.devenv.root}/config/pool.toml
-g ${config.devenv.root}/config/shared/pool.toml
'' "proxy.log";
};
bitcoind = {
Expand Down Expand Up @@ -137,7 +137,7 @@ in {
echo "Redis is up. Starting Mint..."
cargo -C roles/mint -Z unstable-options run -- \
-c ${config.devenv.root}/roles/mint/config/mint.config.toml \
-g ${config.devenv.root}/config/pool.toml
-g ${config.devenv.root}/config/shared/pool.toml
'' "mint.log";
};
};
Expand Down
Loading