Skip to content

Commit

Permalink
Merge pull request #6 from guydavis/develop
Browse files Browse the repository at this point in the history
Optionally start chia data layer services.
  • Loading branch information
priyankub authored Feb 7, 2024
2 parents 3cc7c8f + 0ac7b6e commit d1a50e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Optionally launch Chia Data Layer services (https://docs.chia.net/guides/datalayer-user-guide/) if env var `chia_data=true` is set.
### Changed
- Harvester mode will now optionally also run chia-exporter for Prometheus results.
### Updated
Expand Down
1 change: 1 addition & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ ENV keys="/root/.chia/mnemonic.txt"
ENV plots_dir="/plots"
# One of fullnode, farmer, harvester, plotter, farmer+plotter, harvester+plotter. Default is fullnode
ENV mode="fullnode"
ENV chia_data="false"
ENV chia_exporter="false"
ENV chives_masternode="false"
ENV gigahorse_recompute_server="false"
Expand Down
5 changes: 5 additions & 0 deletions scripts/forks/chia_launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ if [[ ${mode} =~ ^fullnode.* ]]; then
echo "Starting Chia Exporter service for Prometheus reporting..."
sleep 20 && /usr/local/bin/chia-exporter serve 2>&1 > /root/.chia/mainnet/log/chia-exporter.log &
fi
if [[ ${chia_data} == "true" ]]; then
echo "Starting Chia Data Layer services..."
sleep 20 && chia start data 2>&1 > /root/.chia/mainnet/log/chia-data.log &
sleep 20 && chia start data_layer_http 2>&1 >> /root/.chia/mainnet/log/chia-data.log &
fi
if [[ ${mode} =~ .*timelord$ ]]; then
if [ ! -f vdf_bench ]; then
echo "Building timelord binaries..."
Expand Down

0 comments on commit d1a50e5

Please sign in to comment.