Skip to content

Update notes and add snapshot download logic #2

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

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
2 changes: 1 addition & 1 deletion THAI/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# คู่มือติดตั้ง SUI Full Node แบบ Brinary
# คู่มือติดตั้ง SUI Full Node แบบ Binary

### สเปคเครื่องที่ทาง SUI กำหนดมา
>:black_square_button: OS Ubuntu 20.04 ++<br>
Expand Down
12 changes: 9 additions & 3 deletions sui_testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env


echo -e "\e[1m\e[32m4. Download Sui Binaries \e[0m" && sleep 1
echo -e "\e[1m\e[32m4. Download Sui Main GitHub Repository \e[0m" && sleep 1
cd $HOME
rm -rf sui
git clone https://github.com/MystenLabs/sui.git
Expand All @@ -38,9 +38,11 @@ git remote add upstream https://github.com/MystenLabs/sui
git fetch upstream
git checkout -B testnet --track upstream/testnet

cargo build -p sui-node -p sui --release
echo -e "\e[1m\e[32m4. Building binaries: sui-node, sui, sui-tool \e[0m" && sleep 1
cargo build -p sui-node -p sui -p sui-tool --release
mv ~/sui/target/release/sui-node /usr/local/bin/
mv ~/sui/target/release/sui /usr/local/bin/
mv ~/sui/target/release/sui-tool /usr/local/bin/



Expand Down Expand Up @@ -75,7 +77,11 @@ p2p-config:
- address: "/ip4/65.109.108.186/udp/8084"
EOF


# Reference:
# https://docs.sui.io/guides/operator/snapshots
echo -e "\e[1m\e[32m3. Download Snapshot \e[0m" && sleep 1
echo "Snapshot: 1 ~ 2 TB disk space is required"
sui-tool download-db-snapshot --latest --path $HOME/.sui/db --network testnet --num-parallel-downloads 25 --no-sign-request


echo -e "\e[1m\e[32m5. Make Sui Service \e[0m" && sleep 1
Expand Down