Skip to content

molla202/Galactica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

image

💻 Sistem Gereksinimleri

Bileşenler Minimum Gereksinimler
CPU 4
RAM 8+ GB
Storage 400 GB SSD

🚧Gereklilikler ve Update

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

🚧GO

ver="1.21.3" &&
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" &&
sudo rm -rf /usr/local/go &&
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" &&
rm "go$ver.linux-amd64.tar.gz" &&
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile &&
source $HOME/.bash_profile &&
go version

🚧Varyasyonlar

NOT: cüzdan adı ve moniker adı yazınız..

echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="node-adi-yaz"" >> $HOME/.bash_profile
echo "export GALACTICA_CHAIN_ID="galactica_9302-1"" >> $HOME/.bash_profile
echo "export GALACTICA_PORT="46"" >> $HOME/.bash_profile
source $HOME/.bash_profile

🚧Dosyaları çekelim

cd $HOME
rm -rf galactica
git clone https://github.com/Galactica-corp/galactica
cd galactica
git checkout v0.1.2
make build
mkdir -p ~/.galactica/cosmovisor/upgrades/v0.1.2/bin
mv $HOME/go/bin/galacticad ~/.galactica/cosmovisor/upgrades/v0.1.2/bin/
sudo ln -s ~/.galactica/cosmovisor/genesis ~/.galactica/cosmovisor/current -f
sudo ln -s ~/.galactica/cosmovisor/current/bin/galacticad /usr/local/bin/galacticad -f

🚧Cosmovisor kuralım

go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

🚧Servis oluşturalım

sudo tee /etc/systemd/system/galacticad.service > /dev/null << EOF
[Unit]
Description=galactica node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=~/.galactica"
Environment="DAEMON_NAME=galacticad"
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:~/.galactica/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF

🚧Etkinleştirelim

sudo systemctl daemon-reload
sudo systemctl enable galacticad

🚧Ağ ayarları

galacticad config chain-id galactica_9302-1
galacticad config keyring-backend os
galacticad config node tcp://localhost:26657

🚧İnit

galacticad init NAME_OF_YOUR_VALIDATOR --chain-id galactica_9302-1

🚧Genesis ve addrbook

curl https://raw.githubusercontent.com/molla202/Galactica/main/genesis.json -o ~/.galactica/config/genesis.json
curl https://raw.githubusercontent.com/molla202/Galactica/main/addrbook.json -o ~/.galactica/config/addrbook.json

🚧Seed ve Peer

SEEDS="52ccf467673f93561c9d5dd4434def32ef2cd7f3@galactica-testnet-seed.itrocket.net:46656"
PEERS="c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-peer.itrocket.net:11656,[email protected]:26656,[email protected]:15656,[email protected]:26756,[email protected]:27456,[email protected]:26656,[email protected]:26656,[email protected]:46656,[email protected]:26656,[email protected]:27456,[email protected]:30656,[email protected]:26656,[email protected]:28656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.galactica/config/config.toml

🚧Port

sed -i.bak -e "s%:1317%:${GALACTICA_PORT}317%g;
s%:8080%:${GALACTICA_PORT}080%g;
s%:9090%:${GALACTICA_PORT}090%g;
s%:9091%:${GALACTICA_PORT}091%g;
s%:8545%:${GALACTICA_PORT}545%g;
s%:8546%:${GALACTICA_PORT}546%g;
s%:6065%:${GALACTICA_PORT}065%g" $HOME/.galactica/config/app.toml

Port

sed -i.bak -e "s%:26658%:${GALACTICA_PORT}658%g;
s%:26657%:${GALACTICA_PORT}657%g;
s%:6060%:${GALACTICA_PORT}060%g;
s%:26656%:${GALACTICA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${GALACTICA_PORT}656\"%;
s%:26660%:${GALACTICA_PORT}660%g" $HOME/.galactica/config/config.toml

🚧Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.galactica/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.galactica/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.galactica/config/app.toml

🚧Gas ve index ayarı

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "10agnet"|g' $HOME/.galactica/config/app.toml sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.galactica/config/config.toml sed -i -e "s/^indexer =./indexer = "null"/" $HOME/.galactica/config/config.toml


### 🚧Başlatalım

sudo systemctl start galacticad && sudo journalctl -u galacticad -f --no-hostname -o cat

### Log

sudo journalctl -u galacticad -f --no-hostname -o cat

### Cüzdan olusturma

galacticad keys add cüzdan-adi-yaz

### Cüzdan import

galacticad keys add cüzdan-adi-yaz --recover

### Cüzdan EVM adresi al

galacticad keys convert-bech32-to-hex $(galacticad keys show cüzdan-adi-yaz -a)

### Private key al

galacticad keys unsafe-export-eth-key cüzdan-adi-yaz

### Validator oluştur

galacticad tx staking create-validator
--amount 1000000agnet
--from $WALLET
--commission-rate 0.1
--commission-max-rate 0.2
--commission-max-change-rate 0.01
--min-self-delegation 1
--pubkey $(galacticad tendermint show-validator)
--moniker "molla202"
--identity ""
--website ""
--details "I love blockchain ❤️"
--chain-id galactica_9302-1
--gas 200000 --gas-prices 15agnet
-y

### Validator editle

galacticad tx staking edit-validator
--commission-rate 0.1
--new-moniker "$MONIKER"
--identity ""
--details "I love blockchain ❤️"
--from $WALLET
--chain-id galactica_9302-1
--gas 200000 --gas-prices 15agnet
-y

### jailden çık

galacticad tx slashing unjail --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

### Bakiye yolla

galacticad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000agnet --gas 200000 --gas-prices 10agnet -y

### Kendine stake et

galacticad tx staking delegate $(galacticad keys show $WALLET --bech val -a) 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

### Stake et

galacticad tx staking delegate <TO_VALOPER_ADDRESS> 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

### Bakiye sorgula

galacticad query bank balances $WALLET_ADDRESS













sudo systemctl stop galacticad
sudo systemctl disable galacticad
sudo rm -rf /etc/systemd/system/galacticad.service
sudo rm $(which galacticad)
sudo rm -rf $HOME/.galactica
sed -i "/GALACTICA_/d" $HOME/.bash_profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published