Ödeme Yöntemleri Abuse

Kaynak Ağ: Düğümün kurulması ve düğümle çalışma

27.09.2024, 19:41

Kaynak Ağı ve ekosistemin fiziksel uygulaması olan Merkezi Olmayan Veri (D2) Vakfı, verilerin demokratikleştirilmesine kendini adamış WEB3 geliştiricilerinden oluşmaktadır. Ağ, gizlilik, güvenlik ve rıza yoluyla kontrolü kullanıcılara iade etmek için sosyal bir hareket fikrine dayanarak kurulmuştur.

Minimum sistem gereksinimleri

Düğüm tipi: Testnet.

CPU: 4.

RAM: 8GB.

Depolama: 150GB.

Düğüm kurulumu

Otomatik kurulum

wget -O sources https://raw.githubusercontent.com/111STAVR111/props/main/Source/Testnet/sources && chmod +x sources && ./sources

Manuel kurulum

Sunucu hazırlığı

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc chrony liblz4-tool -y

GO 1.21.6 Yükleniyor

ver="1.21.6"
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

Sürüm 01.08.24

cd $HOME && mkdir $HOME/go/bin/
git clone https://github.com/Source-Protocol-Cosmos/source.git
cd ~/source
git checkout v.3.0.2
make install

Kurulum

sourced init STAVR_guide --chain-id=source-1
sourced config chain-id source-1

Cüzdan Oluştur/Geri Yükle

sourced keys add <walletname>

VEYA

sourced keys add <walletname> --recover

Genesis'i Kurun

curl -s  https://raw.githubusercontent.com/Source-Protocol-Cosmos/testnets/master/sourcetest-1/genesis.json > ~/.source/config/genesis.json

Asgari gaz fiyatı ve Emsaller/Seeds'in belirlenmesi

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = "0.25usource"/;" ~/.source/config/app.toml
external_address=$(wget -qO- eth0.me) 
sed -i.bak -e "s/^external_address *=.*/external_address = "$external_address:26656"/" $HOME/.source/config/config.toml
peers=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = "$peers"/" $HOME/.source/config/config.toml
seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = "$seeds"/" $HOME/.source/config/config.toml
sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.source/config/config.toml
sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.source/config/config.toml

Budama (isteğe bağlı)

pruning="custom"
pruning_keep_recent="1000"
pruning_keep_every="0"
pruning_interval="100"
sed -i -e "s/^pruning *=.*/pruning = "$pruning"/" $HOME/.source/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = "$pruning_keep_recent"/" $HOME/.source/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = "$pruning_keep_every"/" $HOME/.source/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = "$pruning_interval"/" $HOME/.source/config/app.toml

Dizinleyici (isteğe bağlı)

indexer="null" &&
sed -i -e "s/^indexer *=.*/indexer = "$indexer"/" $HOME/.source/config/config.toml

addrbook'u yükleme

wget -O $HOME/.source/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Source/Testnet/addrbook.json"

Servis dosyası oluşturma

sudo tee /etc/systemd/system/sourced.service > /dev/null <<EOF
[Unit]
Description=source test
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sourced) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

SnapShot Testnet her 5 saatte bir güncellenir

cd $HOME
sudo systemctl stop sourced
cp $HOME/.source/data/priv_validator_state.json $HOME/.source/priv_validator_state.json.backup
rm -rf $HOME/.source/data
curl -o - -L https://source-t.snapshot.stavr.tech/source-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.source --strip-components 2
curl -o - -L https://source-t.wasm.stavr.tech/wasm-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.source/data --strip-components 3
mv $HOME/.source/priv_validator_state.json.backup $HOME/.source/data/priv_validator_state.json
wget -O $HOME/.source/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Source/addrbook.json"
sudo systemctl restart sourced && journalctl -u sourced -f -o cat

Başlangıç

sudo systemctl daemon-reload
sudo systemctl enable sourced
sudo systemctl restart sourced && sudo journalctl -fu sourced -o cat

Doğrulayıcı oluşturma

sourced tx staking create-validator 
--amount=1000000usource 
--pubkey=$(sourced tendermint show-validator) 
--moniker=STAVR_guide 
--chain-id=sourcetest-1 
--commission-rate="0.10" 
--commission-max-rate="0.20" 
--commission-max-change-rate="0.1" 
--min-self-delegation="1" 
--fees=100usource 
--from=<walletName> 
--identity="" 
--website="" 
--fees 5000usource 
--details="" -y

Düğüm silme

sudo systemctl stop sourced
sudo systemctl disable sourced
rm /etc/systemd/system/sourced.service
sudo systemctl daemon-reload
cd $HOME
rm -rf .source
rm -rf source
rm -rf $(which sourced)

Yararlı komutlar

Bilgi

sourced status 2>&1 | jq .NodeInfo
sourced status 2>&1 | jq .SyncInfo
sourced status 2>&1 | jq .ValidatorInfo

Düğüm günlüklerini kontrol edin

sudo journalctl -fu sourced -o cat

Servis durumunu kontrol edin

sudo systemctl status sourced

Hizmeti yeniden başlat

sudo systemctl restart sourced

Hizmeti durdurma

sudo systemctl stop sourced

Hizmet başlangıcı

sudo systemctl start sourced

Yeniden başlat/kapat/etkinleştir

sudo systemctl daemon-reload
sudo systemctl disable sourced
sudo systemctl enable sourced

Akranınız

echo $(sourced tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.source/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Anahtarlarla çalışma

Yeni anahtar veya Anahtarı geri yükle

sourced keys add Wallet_Name

VEYA

sourced keys add Wallet_Name --recover

Tüm anahtarları kontrol edin

sourced keys list

Bakiye kontrolü

sourced query bank balances address....jkl1yjgn7z09ua9vms259j

Bir anahtarı silme

sourced keys delete Wallet_Name

Dışa aktarma anahtarı

sourced keys export wallet

İçe aktarma anahtarı

sourced keys import wallet wallet.backup

Validator ile Çalışma

Doğrulayıcıyı Düzenle

sourced tx staking edit-validator 
--new-moniker "Your_Moniker" 
--identity "Keybase_ID" 
--details "Your_Description" 
--website "Your_Website" 
--security-contact "Your_Email" 
--chain-id source-1 
--commission-rate 0.05 
--from Wallet_Name 
--gas 350000 
--fees "7000"usource -y

Valope adresiniz

sourced keys show Wallet_Name --bech val

Valcon adresiniz

sourced tendermint show-address

Doğrulayıcınız hakkında bilgi

sourced query staking validator valoperaddress......

Hapishane bilgileri

sourced query slashing signing-info $(sourced tendermint show-validator)

Unjail

sourced tx slashing unjail --from Wallet_name --chain-id source-1 --gas 350000 --fees "7000"usource -y

Etkin doğrulayıcıların listesi

sourced q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " t " + .description.moniker' | sort -gr | nl

Etkin olmayan doğrulayıcıların listesi

sourced q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " t " + .description.moniker' | sort -gr | nl

Anahtarları doğrulayıcıya karşı kontrol edin(Kazan - iyi. Kaybet - kötü).

VALOPER=Enter_Your_valoper_Here
[[ $(sourced q staking validator $VALOPER -oj | jq -r .consensus_pubkey.key) = $(sourced status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "nYou winn" || echo -e "nYou losen"

Tüm doğrulayıcılardan tüm ödülleri geri çekin

sourced tx distribution withdraw-all-rewards --from Wallet_Name --chain-id source-1 --gas 350000 --fees "7000"usource  -y

Validatörünüzden para ve komisyon çekme

sourced tx distribution withdraw-rewards valoper1amxp0k0hg4edrxg85v07t9ka2tfuhamhldgf8e --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 --commission -y

Belirteçleri doğrulayıcınıza devredin

sourced tx staking delegate Your_valpoer........ "100000000"usource --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Belirteçleri başka bir doğrulayıcıya delege etme

sourced tx staking delegate valpoer........ "100000000"usource --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Tokenları cüzdandan cüzdana aktarma

sourced tx bank send Your_address............ address........... "1000000000000000000"usource --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Yönetim

Tüm teklifleri görüntüle

sourced query gov proposals

Belirli bir teklifi görüntüleyin

sourced query gov proposal 1

Lehte oy verin

sourced tx gov vote 1 yes --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Karşı oy

sourced tx gov vote 1 no --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Çekimser

sourced tx gov vote 1 abstain --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

Veto ile karşı oy kullanın

sourced tx gov vote 1 no_with_veto --from Wallet_Name --gas 350000 --fees "7000"usource --chain-id=source-1 -y

IBC transferi

sourced tx ibc-transfer transfer transfer channel-2 Your_OSMOaddress............ "100000"usource --from Your_Source_Wallet_Name ---gas 350000 --fees "70000"usource --chain-id=source-1 -y