-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2742bf5
commit 66c9894
Showing
57 changed files
with
4,837 additions
and
1,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,48 @@ | ||
# Althea | ||
# Services | ||
|
||
<figure><img src="https://github.com/takeshi-val/Logo/raw/main/celestia.png" alt="" width="150"><figcaption></figcaption></figure> | ||
<figure><img src="https://raw.githubusercontent.com/kj89/cosmos-images/main/logos/althea.png" alt=""><figcaption></figcaption></figure> | ||
|
||
Celestia is a minimal blockchain that only orders and publishes transactions and does not execute them. By decoupling the consensus and application execution layers, Celestia modularizes the blockchain technology stack and unlocks new possibilities for decentralized application builders. | ||
Althea's unique cooperative vision for the internet brings peering from the data center to the field | ||
|
||
**Chain ID**: althea | **Latest Version Tag**: v0.5.5 | **Wasm**: OFF | ||
**Chain ID**: althea_7357-1 | **Latest Version Tag**: v0.3.2 | **Wasm**: OFF | ||
|
||
[Website](https://celestia.org) | [Discord](https://discord.gg/celestiacommunity) | [Twitter](https://twitter.com/CelestiaOrg) | ||
[Website](https://www.althea.net) | [Discord](https://discord.gg/ZTKWfpDs) | [Twitter](https://twitter.com/altheanetwork) | ||
|
||
## Chain explorer | ||
|
||
[https://explorer.takeshi.team/celestia-testnet](https://explorer.takeshi.team/celestia-testnet) | ||
|
||
Subscribe to our free [🤖 Testnet Proposal Bot](https://t.me/kjnodes_testnet_proposal_bot) to never miss upcoming proposals | ||
|
||
|
||
## Chain explorer | ||
[https://explorer.takeshi.team/althea-testnet](https://explorer.takeshi.team/althea-testnet) | ||
|
||
## Public endpoints | ||
|
||
* api: [https://celestia-testnet.api.takeshi.team](https://celestia-testnet.api.takeshi.team) | ||
* rpc: [https://celestia-testnet.rpc.takeshi.team](https://celestia-testnet.rpc.takeshi.team) | ||
* grpc: [https://celestia-testnet.grpc.takeshi.team](https://celestia-testnet.grpc.takeshi.team) | ||
* api: [https://althea-testnet.api.takeshi.team](https://althea-testnet.api.takeshi.team) | ||
* rpc: [https://althea-testnet.rpc.takeshi.team](https://althea-testnet.rpc.takeshi.team) | ||
* grpc: althea-testnet.grpc.takeshi.team:15290 | ||
|
||
## Peering | ||
|
||
**state-sync** | ||
|
||
``` | ||
d5519e378247dfb61dfe90652d1fe3e2b3005a5b@celestia-testnet.rpc.takeshi.team:20656 | ||
```text | ||
d5519e378247dfb61dfe90652d1fe3e2b3005a5b@althea-testnet.rpc.takeshi.team:15256 | ||
``` | ||
|
||
**seed-node** | ||
|
||
``` | ||
3f472746f46493309650e5a033076689996c8881@celestia-testnet.rpc.takeshi.team:20659 | ||
```text | ||
3f472746f46493309650e5a033076689996c8881@althea-testnet.rpc.takeshi.team:15259 | ||
``` | ||
|
||
**addrbook** | ||
|
||
```bash | ||
curl -Ls https://snapshots.takeshi.team/celestia-testnet/addrbook.json > $HOME/.celestia-app/config/addrbook.json | ||
curl -Ls https://snapshots.takeshi.team/althea-testnet/addrbook.json > $HOME/.althea/config/addrbook.json | ||
``` | ||
|
||
**live-peers** (7) | ||
|
||
**live-peers** (38) | ||
```bash | ||
peers="[email protected]:20656,[email protected]:43656,[email protected]:20656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656" | ||
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.celestia-app/config/config.toml | ||
peers="[email protected]:26656,[email protected]:26656,[email protected]:11056,[email protected]:31656,[email protected]:26656,[email protected]:29336,[email protected]:24126,[email protected]:26656,[email protected]:17886,[email protected]:26656,[email protected]:21856,[email protected]:27656,[email protected]:12456,[email protected]:17886,[email protected]:26156,[email protected]:14656,[email protected]:14656,[email protected]:11144,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:61056,[email protected]:26656,[email protected]:23296,[email protected]:26676,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:53300,[email protected]:26656,[email protected]:26656,[email protected]:52656,[email protected]:26656,[email protected]:26656,[email protected]:55766" | ||
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.althea/config/config.toml | ||
``` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
--- | ||
description: Setting up your validator node has never been so easy. Get your validator running in minutes by following step by step instructions. | ||
--- | ||
|
||
# Installation | ||
|
||
<figure><img src="https://raw.githubusercontent.com/kj89/cosmos-images/main/logos/althea.png" alt=""><figcaption></figcaption></figure> | ||
|
||
**Chain ID**: althea_7357-1 | **Latest Version Tag**: v0.3.2 | **Custom Port**: 152 | ||
|
||
### Setup validator name | ||
|
||
{% hint style='info' %} | ||
Replace **YOUR_MONIKER_GOES_HERE** with your validator name | ||
{% endhint %} | ||
|
||
```bash | ||
MONIKER="YOUR_MONIKER_GOES_HERE" | ||
``` | ||
|
||
### Install dependencies | ||
|
||
#### Update system and install build tools | ||
|
||
```bash | ||
sudo apt -q update | ||
sudo apt -qy install curl git jq lz4 build-essential | ||
sudo apt -qy upgrade | ||
``` | ||
|
||
#### Install Go | ||
|
||
```bash | ||
sudo rm -rf /usr/local/go | ||
curl -Ls https://go.dev/dl/go1.19.10.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local | ||
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh) | ||
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile) | ||
``` | ||
|
||
### Download and build binaries | ||
|
||
```bash | ||
# Clone project repository | ||
cd $HOME | ||
rm -rf althea-chain | ||
git clone https://github.com/althea-net/althea-chain.git | ||
cd althea-chain | ||
git checkout v0.3.2 | ||
|
||
# Build binaries | ||
make build | ||
|
||
# Prepare binaries for Cosmovisor | ||
mkdir -p $HOME/.althea/cosmovisor/genesis/bin | ||
mv build/althea $HOME/.althea/cosmovisor/genesis/bin/ | ||
rm -rf build | ||
|
||
# Create application symlinks | ||
sudo ln -s $HOME/.althea/cosmovisor/genesis $HOME/.althea/cosmovisor/current -f | ||
sudo ln -s $HOME/.althea/cosmovisor/current/bin/althea /usr/local/bin/althea -f | ||
``` | ||
|
||
### Install Cosmovisor and create a service | ||
|
||
```bash | ||
# Download and install Cosmovisor | ||
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected] | ||
|
||
# Create service | ||
sudo tee /etc/systemd/system/althea.service > /dev/null << EOF | ||
[Unit] | ||
Description=althea-testnet node service | ||
After=network-online.target | ||
[Service] | ||
User=$USER | ||
ExecStart=$(which cosmovisor) run start | ||
Restart=on-failure | ||
RestartSec=10 | ||
LimitNOFILE=65535 | ||
Environment="DAEMON_HOME=$HOME/.althea" | ||
Environment="DAEMON_NAME=althea" | ||
Environment="UNSAFE_SKIP_BACKUP=true" | ||
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.althea/cosmovisor/current/bin" | ||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable althea | ||
``` | ||
|
||
### Initialize the node | ||
|
||
```bash | ||
# Set node configuration | ||
althea config chain-id althea_7357-1 | ||
althea config keyring-backend test | ||
althea config node tcp://localhost:15257 | ||
|
||
# Initialize the node | ||
althea init $MONIKER --chain-id althea_7357-1 | ||
|
||
# Download genesis and addrbook | ||
curl -Ls https://snapshots.takeshi.team/althea-testnet/genesis.json > $HOME/.althea/config/genesis.json | ||
curl -Ls https://snapshots.takeshi.team/althea-testnet/addrbook.json > $HOME/.althea/config/addrbook.json | ||
|
||
# Add seeds | ||
sed -i -e "s|^seeds *=.*|seeds = \"3f472746f46493309650e5a033076689996c8881@althea-testnet.rpc.takeshi.team:15259\"|" $HOME/.althea/config/config.toml | ||
|
||
# Set minimum gas price | ||
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ualthea\"|" $HOME/.althea/config/app.toml | ||
|
||
# Set pruning | ||
sed -i \ | ||
-e 's|^pruning *=.*|pruning = "custom"|' \ | ||
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \ | ||
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \ | ||
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \ | ||
$HOME/.althea/config/app.toml | ||
|
||
# Set custom ports | ||
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:15258\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:15257\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:15260\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:15256\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":15266\"%" $HOME/.althea/config/config.toml | ||
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:15217\"%; s%^address = \":8080\"%address = \":15280\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:15290\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:15291\"%; s%:8545%:15245%; s%:8546%:15246%; s%:6065%:15265%" $HOME/.althea/config/app.toml | ||
``` | ||
|
||
### Download latest chain snapshot | ||
|
||
```bash | ||
curl -L https://snapshots.takeshi.team/althea-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.althea | ||
[[ -f $HOME/.althea/data/upgrade-info.json ]] && cp $HOME/.althea/data/upgrade-info.json $HOME/.althea/cosmovisor/genesis/upgrade-info.json | ||
``` | ||
|
||
### Start service and check the logs | ||
|
||
```bash | ||
sudo systemctl start althea && sudo journalctl -u althea -f --no-hostname -o cat | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
description: Catch the latest block faster by using our daily snapshots. | ||
--- | ||
|
||
# Snapshot | ||
|
||
<figure><img src="https://raw.githubusercontent.com/kj89/cosmos-images/main/logos/althea.png" alt=""><figcaption></figcaption></figure> | ||
|
||
{% hint style='info' %} | ||
Snapshots allows a new node to join the network by recovering application state from a backup file. | ||
Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, | ||
snapshot server is periodically beeing state-synced. | ||
{% endhint %} | ||
|
||
Snapshots are taken automatically every 6 hours starting at **08:15 UTC** | ||
|
||
**pruning**: 100/0/19 | **indexer**: null | **version tag**: v0.3.2 | ||
|
||
| BLOCK | AGE | DOWNLOAD | | ||
| ----------------- | --------------- | --------------------------------------------------------------------------------------------------- | | ||
| 1843451 | 2 hours | [snapshot (10.08 GB)](https://snapshots.takeshi.team/althea-testnet/snapshot\_latest.tar.lz4) | | ||
|
||
## Instructions | ||
|
||
### Stop the service and reset the data | ||
|
||
```bash | ||
sudo systemctl stop althea | ||
cp $HOME/.althea/data/priv_validator_state.json $HOME/.althea/priv_validator_state.json.backup | ||
rm -rf $HOME/.althea/data | ||
``` | ||
|
||
### Download latest snapshot | ||
|
||
```bash | ||
curl -L https://snapshots.takeshi.team/althea-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.althea | ||
mv $HOME/.althea/priv_validator_state.json.backup $HOME/.althea/data/priv_validator_state.json | ||
``` | ||
|
||
### Restart the service and check the log | ||
|
||
```bash | ||
sudo systemctl start althea && sudo journalctl -u althea -f --no-hostname -o cat | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
description: With our state sync services you will be able to catch up latest chain block in matter of minutes | ||
--- | ||
|
||
# State sync | ||
|
||
<figure><img src="https://raw.githubusercontent.com/kj89/cosmos-images/main/logos/althea.png" alt=""><figcaption></figcaption></figure> | ||
|
||
{% hint style='info' %} | ||
State Sync allows a new node to join the network by fetching a snapshot of the application state | ||
at a recent height instead of fetching and replaying all historical blocks. Since the | ||
application state is generally much smaller than the blocks, and restoring it is much | ||
faster than replaying blocks, this can reduce the time to sync with the network from days to minutes. | ||
{% endhint %} | ||
|
||
## Instructions | ||
|
||
### Stop the service and reset the data | ||
|
||
```bash | ||
sudo systemctl stop althea | ||
cp $HOME/.althea/data/priv_validator_state.json $HOME/.althea/priv_validator_state.json.backup | ||
althea tendermint unsafe-reset-all --keep-addr-book --home $HOME/.althea | ||
``` | ||
|
||
### Get and configure the state sync information | ||
|
||
```bash | ||
STATE_SYNC_RPC=https://althea-testnet.rpc.takeshi.team:443 | ||
STATE_SYNC_PEER=d5519e378247dfb61dfe90652d1fe3e2b3005a5b@althea-testnet.rpc.takeshi.team:15256 | ||
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height) | ||
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 1000)) | ||
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash) | ||
|
||
sed -i \ | ||
-e "s|^enable *=.*|enable = true|" \ | ||
-e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \ | ||
-e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \ | ||
-e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \ | ||
-e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \ | ||
$HOME/.althea/config/config.toml | ||
|
||
mv $HOME/.althea/priv_validator_state.json.backup $HOME/.althea/data/priv_validator_state.json | ||
``` | ||
|
||
|
||
|
||
### Restart the service and check the log | ||
|
||
```bash | ||
sudo systemctl start althea && sudo journalctl -u althea -f --no-hostname -o cat | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
description: Prepare for and the upcomming chain upgrade using Cosmovisor. | ||
--- | ||
|
||
# Upgrade | ||
|
||
<figure><img src="https://raw.githubusercontent.com/kj89/cosmos-images/main/logos/althea.png" alt=""><figcaption></figcaption></figure> | ||
|
||
**Chain ID**: althea_7357-1 | **Latest Version Tag**: v0.3.2 | **Custom Port**: 152 | ||
|
||
{% hint style='info' %} | ||
Since we are using Cosmovisor, it makes it very easy to prepare for upcomming upgrade. | ||
You just have to build new binaries and move it into cosmovisor upgrades directory. | ||
{% endhint %} | ||
|
||
{% hint style='warning' %} | ||
Currently there are no upgrades available for althea_7357-1! | ||
{% endhint %} |
Oops, something went wrong.