Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md and add2systemd.sh to only install the ton-index-pos… #86

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ Do the following steps to build and run index worker from source.

1. Install required packages:

sudo apt-get update -y
sudo apt-get install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git curl libreadline-dev ccache libmicrohttpd-dev pkg-config libsecp256k1-dev libsodium-dev python3-dev libpq-dev ninja-build
sudo apt update -y
sudo apt install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git curl libreadline-dev ccache libmicrohttpd-dev liblz4-dev pkg-config libsecp256k1-dev libsodium-dev python3-dev libpq-dev ninja-build
2. Build TON index worker binary:

mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -GNinja ..
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=off -GNinja ..
ninja -j$(nproc) ton-index-postgres-v2

3. Install binary to your system:

sudo cmake --install
sudo cmake --install ./ton-index-postgres-v2/

4. Increase maximum opened files limit:

Expand Down
2 changes: 1 addition & 1 deletion scripts/add2systemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ else
mkdir -p build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=off -GNinja -S . -B ./build
ninja -C ./build -j$(nproc) ton-index-postgres-v2
sudo cmake --install build/
sudo cmake --install ./build/ton-index-postgres-v2
fi

# setup daemon
Expand Down