<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:tt="http://teletype.in/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Mike</title><generator>teletype.in</generator><description><![CDATA[Mike]]></description><image><url>https://img3.teletype.in/files/64/ca/64ca52ca-a6e2-4daa-86c5-428d8af13057.png</url><title>Mike</title><link>https://teletype.in/@mike-888</link></image><link>https://teletype.in/@mike-888?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><atom:link rel="self" type="application/rss+xml" href="https://teletype.in/rss/mike-888?offset=0"></atom:link><atom:link rel="next" type="application/rss+xml" href="https://teletype.in/rss/mike-888?offset=10"></atom:link><atom:link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></atom:link><pubDate>Fri, 24 Jul 2026 01:20:26 GMT</pubDate><lastBuildDate>Fri, 24 Jul 2026 01:20:26 GMT</lastBuildDate><item><guid isPermaLink="true">https://teletype.in/@mike-888/ncKlr70CSYC</guid><link>https://teletype.in/@mike-888/ncKlr70CSYC?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/ncKlr70CSYC?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Neutron</title><pubDate>Thu, 10 Nov 2022 19:47:52 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Website | Twitter | GitHub | Reddit | Discord | Docs]]></description><content:encoded><![CDATA[
  <figure id="txs0" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="xHA5">OFFICIAL LINKS</h3>
  <p id="sGaE"><a href="https://neutron.org/" target="_blank">Website</a> | <a href="https://twitter.com/Neutron_org" target="_blank">Twitter</a> | <a href="https://github.com/neutron-org" target="_blank">GitHub</a> | <a href="http://www.reddit.com/r/Neutron_org/" target="_blank">Reddit</a> | <a href="https://discord.gg/VUNC4FqJaf" target="_blank">Discord</a> | <a href="https://docs.neutron.org/" target="_blank">Docs</a></p>
  <h3 id="iLKA">1. Обновление пакетов и установка окружения:</h3>
  <pre id="BH6B" data-lang="bash">cd $HOME
sudo apt update &amp;&amp; sudo apt update -y
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="oPVI">2. Установка Go:</h3>
  <pre id="FR6L" data-lang="bash">cd $HOME
wget -O go1.19.1.linux-amd64.tar.gz https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz &amp;&amp; rm go1.19.1.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="k4gz">3. Компиляция бинарного файла:</h3>
  <pre id="C8C5" data-lang="bash">cd $HOME
git clone https://github.com/neutron-org/neutron
cd neutron
git checkout v0.1.0
make install
cd $HOME</pre>
  <h3 id="lRWS">4. Инициализация ноды и скачивание генезиса:</h3>
  <p id="Hv4s">Придумайте свое название ноды и замените <strong>&lt;&lt;node_name&gt;&gt;</strong></p>
  <pre id="bkB7" data-lang="bash">neutrond init &lt;&lt;node_name&gt;&gt; --chain-id quark-1
wget -qO $HOME/.neutrond/config/genesis.json &quot;https://raw.githubusercontent.com/neutron-org/testnets/main/quark/genesis.json&quot;</pre>
  <h3 id="p5d7">5. Добавление peers и seeds:</h3>
  <pre id="Roji" data-lang="bash">seeds=&quot;e2c07e8e6e808fb36cca0fc580e31216772841df@seed-1.quark.ntrn.info:26656,c89b8316f006075ad6ae37349220dd56796b92fa@tenderseed.ccvalidators.com:29001&quot;
peers=&quot;fcde59cbba742b86de260730d54daa60467c91a5@23.109.158.180:26656,5bdc67a5d5219aeda3c743e04fdcd72dcb150ba3@65.109.31.114:2480,3e9656706c94ae8b11596e53656c80cf092abe5d@65.21.250.197:46656,9cb73281f6774e42176905e548c134fc45bbe579@162.55.134.54:26656,27b07238cf2ea76acabd5d84d396d447d72aa01b@65.109.54.15:51656,f10c2cb08f82225a7ef2367709e8ac427d61d1b5@57.128.144.247:26656,20b4f9207cdc9d0310399f848f057621f7251846@222.106.187.13:40006,5019864f233cee00f3a6974d9ccaac65caa83807@162.19.31.150:55256,2144ce0e9e08b2a30c132fbde52101b753df788d@194.163.168.99:26656,b37326e3acd60d4e0ea2e3223d00633605fb4f79@nebula.p2p.org:26656&quot;
sed -i.default &quot;s/^seeds *=.*/seeds = \&quot;$seeds\&quot;/;&quot; $HOME/.neutrond/config/config.toml
sed -i &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/;&quot; $HOME/.neutrond/config/config.toml</pre>
  <h3 id="pSti">6. Изменение настроек прунинга:</h3>
  <pre id="H40C" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.neutrond/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.neutrond/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.neutrond/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.neutrond/config/app.toml</pre>
  <h3 id="UwLi">7. Создание и запуск сервисного файла:</h3>
  <pre id="iQHW" data-lang="bash">echo &quot;[Unit]
Description=neutrond
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which neutrond) start --home $HOME/.neutrond
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/neutrond.service
sudo mv $HOME/neutrond.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable neutrond 

sudo systemctl restart neutrond </pre>
  <h3 id="YFGQ">8. Создаём кошелек, сохраняем мнемонику:</h3>
  <p id="Egtg">Придумайте свое название кошельку и замените <strong>&lt;&lt;wallet_name&gt;&gt;</strong></p>
  <pre id="KpQY" data-lang="bash">neutrond keys add &lt;&lt;wallet_name&gt;&gt;</pre>
  <p id="JFew">Восстановление кошелька используя мнемонику:</p>
  <pre id="DjZM" data-lang="bash">neutrond keys add &lt;&lt;wallet_name&gt;&gt; --recover</pre>
  <p id="1S6G">Проверить синхронизирована ли нода, если результат <strong>false</strong> – значит нода синхронизирована:</p>
  <pre id="vH8u" data-lang="bash">curl -s localhost:26657/status | jq .result.sync_info.catching_up</pre>
  <p id="0uk7">Запрашиваем тестовые токены в <a href="https://t.me/+JUEAeO3QZi02MjRi" target="_blank"><strong>Telegram</strong></a></p>
  <p id="rUZw">Пример запроса: <code>/request YOUR_NEUTRON_ADDRESS</code></p>
  <p id="aDwA"><em><strong>Ограничение: 1 запрос в день, на один адрес, на один аккаунт</strong></em></p>
  <p id="ghty">Проверить баланс кошелька</p>
  <pre id="Hp8w" data-lang="bash">neutrond q bank balances &lt;&lt;address&gt;&gt;</pre>
  <h3 id="8POI">9. Создаём валидатора   </h3>
  <pre id="xSxS" data-lang="bash">neutrond tx staking create-validator \
--moniker=&quot;&lt;&lt;node_name&gt;&gt;&quot; \
--amount=1000000untrn \
--pubkey=$(neutrond tendermint show-validator) \
--chain-id=quark-1 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--min-self-delegation=1 \
--from=&lt;&lt;wallet_name&gt;&gt; \
--yes</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="TN8G" data-align="center">Не забывайте сделать buckup файла priv_validator_key.json  </h3>
  </section>
  <h3 id="AUda"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Neutron/Neutron%20monitoring%20%7C%20alerting.md" target="_blank"><em>Neutron monitoring | alerting</em></a></h3>
  <h3 id="ktt9"><a href="https://teletype.in/@kupriianov88/-5rZDK3Shn4" target="_blank"><em>Полезные команды CLI в Сosmos sdk</em></a></h3>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/aVMWnGg0r0T</guid><link>https://teletype.in/@mike-888/aVMWnGg0r0T?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/aVMWnGg0r0T?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Defund</title><pubDate>Sat, 05 Nov 2022 10:27:19 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Website | Twitter | GitHub | Medium | Discord]]></description><content:encoded><![CDATA[
  <figure id="wUdG" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="nNL3">OFFICIAL LINKS</h3>
  <p id="csUG"><a href="https://www.defund.app/" target="_blank">Website</a> | <a href="https://twitter.com/defund_finance" target="_blank">Twitter</a> | <a href="https://github.com/defund-labs/defund" target="_blank">GitHub</a> | <a href="https://medium.com/defund-finance" target="_blank">Medium</a> | <a href="https://discord.gg/qR6y2wkp3e" target="_blank">Discord</a></p>
  <h3 id="uBYr">1. Обновление пакетов и установка окружения:</h3>
  <pre id="LYhe" data-lang="bash">cd $HOME
sudo apt update &amp;&amp; sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="yFQC">2. Установка Go:</h3>
  <pre id="4HlY" data-lang="bash">cd $HOME
wget -O go1.19.1.linux-amd64.tar.gz https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz &amp;&amp; rm go1.19.1.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="CSSc">3. Компиляция бинарного файла:</h3>
  <pre id="M27r" data-lang="bash">cd $HOME
git clone https://github.com/defund-labs/defund
cd defund
git checkout v0.1.0
make install
cd $HOME</pre>
  <h3 id="AgqD">4. Инициализация ноды и скачивание genesis и addrbook:</h3>
  <p id="BVCr">Придумайте свое название ноды и замените <strong>&lt;&lt;node_name&gt;&gt;</strong></p>
  <pre id="pT1a" data-lang="bash">defundd init &lt;&lt;node_name&gt;&gt; --chain-id defund-private-2
wget -qO $HOME/.defund/config/genesis.json &quot;https://raw.githubusercontent.com/defund-labs/testnet/main/defund-private-2/genesis.json&quot;
wget -O $HOME/.defund/config/addrbook.json https://github.com/88Mikhail88/My_Testnets/blob/main/Defund/addrbook.json</pre>
  <h3 id="4pZr">5. Добавление seeds и peers:</h3>
  <pre id="Aw1x" data-lang="bash">seeds=&quot;85279852bd306c385402185e0125dffeed36bf22@38.146.3.194:26656&quot;
peers=&quot;d9184a3a61c56b803c7b317cd595e83bbae3925e@194.163.174.231:26677,5e7853ec4f74dba1d3ae721ff9f50926107efc38@65.108.6.45:60556,f114c02efc5aa7ee3ee6733d806a1fae2fbfb66b@65.108.46.123:56656,aa2c9df37e372c7928435075497fb0fb7ff9427e@38.129.16.18:26656,f2985029a48319330b99767d676412383e7061bf@194.163.155.84:36656,daff7b8cbcae4902c3c4542113ba521f968cc3f8@213.239.217.52:29656&quot;
sed -i.default &quot;s/^seeds *=.*/seeds = \&quot;$seeds\&quot;/;&quot; $HOME/.defund/config/config.toml
sed -i &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/;&quot; $HOME/.defund/config/config.toml</pre>
  <pre id="EUfY" data-lang="bash"># Устанавливаем минимальную цену за газ
sed -i.bak -e &quot;s/^minimum-gas-prices *=.*/minimum-gas-prices = \&quot;0.0025ufetf\&quot;/&quot; ~/.defund/config/app.toml</pre>
  <h3 id="QO9c">6. Изменение настроек прунинга:</h3>
  <pre id="fu41" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.defund/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.defund/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.defund/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.defund/config/app.toml</pre>
  <h3 id="cLCT">7. Создание и запуск сервисного файла:</h3>
  <pre id="EWtr" data-lang="bash">echo &quot;[Unit]
Description=defund
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which defundd) start --home $HOME/.defund
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/defund.service
sudo mv $HOME/defund.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable defund

sudo systemctl restart defund</pre>
  <h3 id="RAcX">8. Создаём кошелек, сохраняем мнемонику:</h3>
  <p id="wgYR">Придумайте свое название кошельку и замените <strong>&lt;&lt;wallet_name&gt;&gt;</strong></p>
  <pre id="SVDe" data-lang="bash">defundd keys add &lt;&lt;wallet_name&gt;&gt;</pre>
  <p id="p9MC">Восстановление кошелька используя мнемонику:</p>
  <pre id="PJSX" data-lang="bash">defundd keys add &lt;&lt;wallet_name&gt;&gt; --recover</pre>
  <p id="CNXA">Проверить синхронизирована ли нода, если результат false – значит нода синхронизирована:</p>
  <pre id="ngXa" data-lang="bash">curl -s localhost:26657/status | jq .result.sync_info.catching_up</pre>
  <h3 id="AIKV">9. После того, как нода синхронизовалась нужно запросить тестовые токены.</h3>
  <p id="96SC">Для этого переходим в discord в ветку <a href="https://discord.gg/qR6y2wkp3e" target="_blank"><em><strong>faucet</strong></em></a> и запрашиваем тестовые токены.</p>
  <p id="tAHb">Проверить баланс кошелька</p>
  <pre id="Q4YP" data-lang="bash">defundd q bank balances &lt;&lt;address&gt;&gt;</pre>
  <h3 id="J8kj">10. Создаём валидатора   </h3>
  <pre id="8APk" data-lang="bash">defundd tx staking create-validator \
--moniker=&quot;&lt;&lt;node_name&gt;&gt;&quot; \
--amount=1000000ufetf \
--pubkey=$(defundd tendermint show-validator) \
--chain-id=defund-private-2 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--min-self-delegation=1 \
--from=&lt;&lt;wallet_name&gt;&gt; \
--yes </pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="K7rY" data-align="center">Не забывайте сделать buckup файла priv_validator_key.json</h3>
  </section>
  <p id="EcDo"></p>
  <h3 id="ufGZ"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Defund/Defund%20State%20Sync.md" target="_blank"><em>Defund State Sync</em></a></h3>
  <h3 id="qrXe"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Defund/Defund%20monitoring%20%7C%20alerting.md" target="_blank"><em>Defund monitoring | alerting</em></a></h3>
  <h3 id="GvVO"><em><a href="https://teletype.in/@kupriianov88/-5rZDK3Shn4" target="_blank">Полезные команды CLI в Сosmos sdk</a></em></h3>
  <p id="rXlj"></p>
  <hr />
  <p id="12Ne"></p>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="3X4q" data-align="center">UPD Defund</h2>
  </section>
  <pre id="waKb" data-lang="bash">systemctl stop defund

defundd tendermint unsafe-reset-all --home $HOME/.defund

wget -O $HOME/.defund/config/defund-private-3-gensis.tar.gz &quot;https://raw.githubusercontent.com/defund-labs/testnet/main/defund-private-3/defund-private-3-gensis.tar.gz&quot;

rm -rf $HOME/.defund/config/genesis.json

cd $HOME/.defund/config/

tar -xzvf defund-private-3-gensis.tar.gz

rm -rf defund-private-3-gensis.tar.gz

cd $HOME

defundd config chain-id defund-private-3 

systemctl restart defund

journalctl -u defund -f -o cat</pre>
  <h3 id="aOZ5">В логах вы должны увидеть</h3>
  <figure id="vhwq" class="m_original">
    <img src="https://img2.teletype.in/files/93/c8/93c8419a-451b-4e6b-87ec-04b2f631dcbb.png" width="1150" />
  </figure>
  <p id="TBIZ"></p>
  <h2 id="mXSJ"><em>Всем Удачи!</em></h2>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/ULNUA9uhmXN</guid><link>https://teletype.in/@mike-888/ULNUA9uhmXN?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/ULNUA9uhmXN?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Nibiru nibiru-testnet-1</title><pubDate>Tue, 01 Nov 2022 13:12:19 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Ended Events</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Website | LinkedIn | Twitter | GitHub | Medium | Discord | GitBook ]]></description><content:encoded><![CDATA[
  <figure id="pZ8d" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="LEii">OFFICIAL LINKS</h3>
  <p id="ROs7"><a href="https://nibiru.fi/" target="_blank">Website</a> | <a href="https://www.linkedin.com/company/nibiruchain/" target="_blank">LinkedIn</a> | <a href="https://twitter.com/NibiruChain" target="_blank">Twitter</a> | <a href="https://github.com/NibiruChain" target="_blank">GitHub</a> | <a href="https://blog.nibiru.fi/" target="_blank">Medium</a> | <a href="https://discord.gg/mET8gtGh5w" target="_blank">Discord</a> | <a href="https://docs.nibiru.fi/" target="_blank">GitBook</a> </p>
  <h3 id="zTFL">1. Обновление пакетов и установка окружения:</h3>
  <pre id="Zh6o" data-lang="bash">cd $HOME
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="r47e">2. Установка Go:</h3>
  <pre id="k5LU" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="vYPK">3. Компиляция бинарного файла:</h3>
  <pre id="LZ4y" data-lang="bash">cd $HOME
git clone https://github.com/NibiruChain/nibiru
cd nibiru
make install
cd $HOME</pre>
  <h3 id="8uvs">4. Инициализация ноды и скачивание генезиса:</h3>
  <p id="CG9w">Придумайте свое название ноды и замените <strong>&lt;&lt;node_name&gt;&gt;</strong></p>
  <pre id="Ck2h" data-lang="bash">nibid init &lt;&lt;node_name&gt;&gt; --chain-id nibiru-testnet-1
curl -s https://rpc.testnet-1.nibiru.fi/genesis | jq -r .result.genesis &gt; genesis.json
cp genesis.json $HOME/.nibid/config/genesis.json</pre>
  <h3 id="Adkk">5. Добавление пиров:</h3>
  <pre id="xdYs" data-lang="bash">peers=&quot;37713248f21c37a2f022fbbb7228f02862224190@35.243.130.198:26656,ff59bff2d8b8fb6114191af7063e92a9dd637bd9@35.185.114.96:26656,cb431d789fe4c3f94873b0769cb4fce5143daf97@35.227.113.63:26656&quot;
sed -i.bak -e &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/&quot; $HOME/.nibid/config/config.toml
sed -i &#x27;s/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g&#x27; $HOME/.nibid/config/config.toml
sed -i &#x27;s/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g&#x27; $HOME/.nibid/config/config.toml
sed -i.bak -e &quot;s/^minimum-gas-prices *=.*/minimum-gas-prices = \&quot;0.0uknow\&quot;/;&quot; ~/.nibid/config/app.toml</pre>
  <h3 id="lBON">6. Изменение настроек прунинга:</h3>
  <pre id="oh28" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.nibid/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.nibid/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.nibid/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.nibid/config/app.toml</pre>
  <h3 id="yUvH">7. Создание и запуск сервисного файла:</h3>
  <pre id="bsbY" data-lang="bash">echo &quot;[Unit]
Description=nibid
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which nibid) start --home $HOME/.nibid
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/nibid.service
sudo mv $HOME/nibid.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable nibid 

sudo systemctl restart nibid </pre>
  <h3 id="7e1n">8. Создаём кошелек, сохраняем мнемонику:</h3>
  <p id="rU7m">Придумайте свое название кошельку и замените <strong>&lt;&lt;wallet_name&gt;&gt;</strong></p>
  <pre id="yqMl" data-lang="bash">nibid keys add &lt;&lt;wallet_name&gt;&gt;</pre>
  <p id="oLni">Восстановление кошелька используя мнемонику:</p>
  <pre id="9DHH" data-lang="bash">nibid keys add &lt;&lt;wallet_name&gt;&gt; --recover</pre>
  <p id="GXgl">Проверить синхронизирована ли нода, если результат <strong>false</strong> – значит нода синхронизирована:</p>
  <pre id="zfWP" data-lang="bash">curl -s localhost:26657/status | jq .result.sync_info.catching_up</pre>
  <h3 id="xVYn">9. После того, как нода синхронизовалась нужно запросить тестовые токены.</h3>
  <p id="Al3n">Для этого переходим в discord, ветка <a href="https://discord.gg/mET8gtGh5w" target="_blank">faucet</a></p>
  <p id="7MJZ">Проверить баланс кошелька</p>
  <pre id="6Z22" data-lang="bash">nibid q bank balances &lt;&lt;address&gt;&gt;</pre>
  <h3 id="zoLv">10. Создаём валидатора  </h3>
  <pre id="DaLG" data-lang="bash">nibid tx staking create-validator \
--moniker=&quot;&lt;&lt;node_name&gt;&gt;&quot; \
--amount=1000000unibi \
--pubkey=$(nibid tendermint show-validator) \
--chain-id=nibiru-testnet-1 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--min-self-delegation=1 \
--from=&lt;wallet_name&gt; \
--yes </pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="9ZT3" data-align="center">Не забывайте сделать buckup файла priv_validator_key.json  </h3>
  </section>
  <p id="TXrw"></p>
  <h3 id="AfjQ"><em><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Nibiru/Nibiru%20State%20Sync.md" target="_blank">Nibiru State Sync</a> </em></h3>
  <h3 id="cmkC"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Nibiru/Nibiru%20monitoring%20%7C%20alerting.md" target="_blank"><em>Nibiru monitoring | alerting</em></a></h3>
  <h3 id="iv00"><a href="https://teletype.in/@kupriianov88/-5rZDK3Shn4" target="_blank"><em>Полезные команды CLI в Сosmos sdk</em></a><br /></h3>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/6gnPmQnLxw3</guid><link>https://teletype.in/@mike-888/6gnPmQnLxw3?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/6gnPmQnLxw3?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Подача gentx Defund-private-2</title><pubDate>Thu, 27 Oct 2022 12:49:36 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Ended Events</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Twitter | Medium | Website | GitHub
]]></description><content:encoded><![CDATA[
  <h3 id="vRel"><em>UPD - приём gentx окончен, genesis.json будет сформирован 31 октября.</em></h3>
  <figure id="qQ1U" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="yBuV">OFFICIAL LINKS</h3>
  <p id="2zOx"><a href="https://twitter.com/defund_finance" target="_blank">Twitter</a> | <a href="https://medium.com/defund-finance" target="_blank">Medium</a> | <a href="https://www.defund.app/" target="_blank">Website</a> | <a href="https://github.com/defund-labs/defund" target="_blank">GitHub</a><br /></p>
  <h3 id="mC70">1. Обновление пакетов и установка окружения</h3>
  <pre id="eePr" data-lang="bash">sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="vn5K">2. Установка Go</h3>
  <pre id="G0nF" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version &gt; /dev/null</pre>
  <h3 id="FwSx">3. Компиляция бинарного файла</h3>
  <pre id="mOL5" data-lang="bash">git clone https://github.com/defund-labs/defund
cd defund
git checkout v0.1.0-alpha
make install</pre>
  <h3 id="EEsH">4. Инициализация</h3>
  <p id="ZP4R">Придумайте свое название ноды и задайте значение переменной <strong><em>$Defund_Nodename</em></strong></p>
  <pre id="Z1t7" data-lang="bash">defundd init $Defund_Nodename --chain-id defund-private-2</pre>
  <h3 id="WWN4">5. Создаём кошелек </h3>
  <p id="d4HM">Придумайте свое название кошельку и задайте значение переменной <strong><em>$name_wallet</em></strong></p>
  <pre id="ax2S" data-lang="bash">defundd keys add $name_wallet</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="2OM8" data-align="center">Не забываем сохранить мнемонику</h3>
  </section>
  <p id="J84s">6. Запрашиваем тестовые ufetf для транзакции gentx</p>
  <p id="vwmb">Замените &lt;&lt;address&gt;&gt; на свой</p>
  <pre id="VjJe" data-lang="bash">defundd add-genesis-account &lt;&lt;address&gt;&gt; 100000000ufetf</pre>
  <h3 id="Dnem">7. Создаём gentx</h3>
  <p id="3TSX">Заполнить и заменить необходимые данные</p>
  <pre id="iOd6" data-lang="bash">defundd gentx $name_wallet 90000000ufetf \
--chain-id defund-private-2 \
--moniker=&quot;$Defund_Nodename&quot; \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--details=&quot;&quot; \
--security-contact=&quot;&quot; \
--website=&quot;&quot;</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="pkHN" data-align="center">Не забывайте сделать buckup файла priv_validator_key.json  </h3>
  </section>
  <h3 id="Wl1g">8. Созданный gentx расположен здесь</h3>
  <pre id="xoA0" data-lang="bash">cd /root/.defund/config/gentx/

#gentx-XXXXXXXXXXXXXX.json</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="5pAK" data-align="center">Submit PR c вашим Gentx | peer id <br />(Старт 28 октября 03:00 Мск/Киев)</h3>
  </section>
  <blockquote id="nseg">Скопируйте файл ${HOME}/.defundd/config/gentx/gentx-XXXXXXXX.json.</blockquote>
  <p id="3SOC"><strong>Сделайте Fork репозитория</strong> <em><strong><a href="https://github.com/defund-labs/testnet" target="_blank">https://github.com/defund-labs/testnet</a><br /><br />Создайте файл gentx-{{VALIDATOR_NAME}}.json в defund-private-2/gentx/ и вставьте туда текст вашего gentx</strong></em></p>
  <figure id="9Awk" class="m_original">
    <img src="https://img1.teletype.in/files/c3/dc/c3dc4ba7-d7b5-4b0f-adf2-c7178ca61e9a.png" width="1365" />
  </figure>
  <figure id="9noI" class="m_original">
    <img src="https://img2.teletype.in/files/11/9a/119a411d-372e-4a90-a80d-f2a2c088314f.png" width="1365" />
  </figure>
  <figure id="rh42" class="m_original">
    <img src="https://img3.teletype.in/files/ae/0f/ae0fbb20-e080-4b7d-b1eb-68771a2205e4.png" width="1365" />
  </figure>
  <figure id="zTYd" class="m_original">
    <img src="https://img1.teletype.in/files/07/6c/076c5f83-21e4-4187-87d4-fe462b6d9002.png" width="1365" />
  </figure>
  <figure id="AWcN" class="m_original">
    <img src="https://img3.teletype.in/files/ef/cf/efcfe440-6578-4f75-acad-3f6dca9aedfe.png" width="1353" />
  </figure>
  <p id="V1rU"><strong><em>Найдите свой PR среди поданных - <a href="https://github.com/defund-labs/testnet/pulls" target="_blank">https://github.com/defund-labs/testnet/pulls</a></em></strong></p>
  <p id="qfeg"></p>
  <h2 id="HJeD"><em>Всем Удачи!!!</em></h2>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/-5rZDK3Shn4</guid><link>https://teletype.in/@mike-888/-5rZDK3Shn4?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/-5rZDK3Shn4?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Полезные команды CLI в Сosmos sdk</title><pubDate>Mon, 24 Oct 2022 12:48:31 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>P.S.: Комментарии и дополнения приветствуются.]]></description><content:encoded><![CDATA[
  <figure id="Z0Du" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="Gi7h">Значения <em><u>$cli   $address   $to_address   $amount   $chain_id   $denom $node_name   $wallet_name   $id_prop   $valoper_address   $tx_hash</u></em> замените на свои  !!!<br /></h3>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="tSum" data-align="center">Поиск Информации</h2>
  </section>
  <pre id="ZGaR" data-lang="bash"># Посмотреть логи:
journalctl -u $cli -f -o cat

# Рестарт | стоп | статус ноды:
systemctl restart $cli
systemctl stop $cli
systemctl status $cli

# Проверить актуальную высоту блока:
$cli status 2&gt;&amp;1 | jq .&quot;SyncInfo&quot;.&quot;latest_block_height&quot;

# Проверить синхронизирована ли нода, если результат false – значит нода синхронизирована
curl -s localhost:26657/status | jq .result.sync_info.catching_up

# Проверить показатели ноды:
$cli status | jq

# Проверить информацию по tx_hash (при отключении индексации tx_hash будут не найдены):
$cli query tx $tx_hash

# Параметры сети:
$cli q staking params
$cli q slashing params

# Список валидаторов в Active set:
$cli query staking validators --limit 2000 -o json | jq -r &#x27;.validators[] | select(.status==&quot;BOND_STATUS_BONDED&quot;) | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv&#x27; | column -t -s&quot;,&quot; | sort -k3 -n -r

# Список валидаторов в Inactive set:
$cli query staking validators --limit 2000 -o json | jq -r &#x27;.validators[] | select(.status==&quot;BOND_STATUS_UNBONDED&quot;) | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv&#x27; | column -t -s&quot;,&quot; | sort -k3 -n -r
</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="1Ltn" data-align="center">Кошелёк</h2>
  </section>
  <pre id="Q0VS" data-lang="bash"># Создание кошелька (ВСЕГДА СОХРАНЯЕМ СИД ФРАЗУ):
$cli keys add $wallet_name

# Восстановление кошелька используя сид фразу:
$cli keys add $wallet_name --recover

# Проверить баланс кошелька:
$cli q bank balances $address 

# Список кошельков:
$cli keys list

# Отправить монеты на другой адрес:
$cli tx bank send $address $to_address $amount$denom --chain-id $chain_id --fees $amount$denom -y

# Показать ключ аккаунта:
$cli keys show $wallet_name --bech acc

# Показать ключ валидатора:
$cli keys show $wallet_name --bech val

# Показать ключ консенсуса:
$cli keys show $wallet_name --bech cons

# Удалить кошелек:
$cli keys delete $wallet_name</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="Izpg" data-align="center">Создание | редактирование валидатора </h2>
  </section>
  <pre id="T9Ro" data-lang="bash"># Создать валидатора:
$cli tx staking create-validator \
--moniker=&quot;$node_name&quot; \
--amount=1000000$denom \
--fees=300$denom \
--pubkey=$($cli tendermint show-validator) \
--chain-id=$chain_id \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.10 \
--details=&quot;&quot; \
--identity=&quot;&quot; \
--security-contact=&quot;&quot; \
--website &quot;&quot; \
--min-self-delegation=1 \
--from=$wallet_name \
--yes 

# Редактировать валидатора:
$cli tx staking edit-validator \
--details=&quot;&quot; \
--chain-id=$chain_id \
--from=$wallet_name
--yes</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="pZFb" data-align="center">Валидатор</h2>
  </section>
  <pre id="Hj37" data-lang="bash"># Узнать свой valoper адрес:
$cli keys show $wallet_name --bech val -a

# Проверить pubkey валидатора:
$cli tendermint show-validator

# Проверить информацию о валидаторе:
$cli query staking validator $valoper_address

# Проверить количество блоков, пропущенных валидатором и с какого блока активен:
$cli q slashing signing-info $($cli tendermint show-validator)

# Узнать tx_hash транзакции создания валидатора:
$cli query txs --events=&#x27;create_validator.validator=&lt;&lt;valoper_address&gt;&gt;&#x27; -o=json | jq .txs[0].txhash -r

# Заделегировать токены (для того, чтобы увеличить свой стейк делегируйте на свой $valoper_address):
$cli tx staking delegate $valoper_address $amount$denom --from $wallet_name --chain-id $chain_id --fees $amount$denom -y

# Выйти из тюрьмы:
$cli tx slashing unjail --chain-id $chain_id --from $wallet_name --fees $amount$denom -y

# Перевести реварды и комиссию с валидатора на основной баланс кошелька:
$cli tx distribution withdraw-rewards $valoper_address --from $wallet_name --chain-id $chain_id --commission --fees $amount$denom -y

# Перевести все награды от делегирования со всех валидаторов, на которых вы стейкали свои токены:
$cli tx distribution withdraw-all-rewards --chain-id $chain_id \
 --from $wallet_name --gas=auto --gas-adjustment=1.5 --fees=$amount$denom

# Unbond:
$cli tx staking unbond $($cli keys show $wallet_name --bech val -a) $amount$denom \
--from $wallet_name \
--chain-id=$chain_id \
--gas=auto --gas-adjustment=1.5 \
--fees=$amount$denom
</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="R6oh" data-align="center">Peer &amp; Rpc</h2>
  </section>
  <pre id="dnVB" data-lang="bash"># Узнать свой peer@ip:port:
PORTR=$(grep -A 3 &quot;\[p2p\]&quot; ~/.$cli/config/config.toml | egrep -o &quot;:[0-9]+&quot;) &amp;&amp; \
echo $($cli tendermint show-node-id)@$(curl ifconfig.me)$PORTR

# Узнать свой порт RPC:
echo -e &quot;\033[0;32m$(grep -A 3 &quot;\[rpc\]&quot; ~/.$cli/config/config.toml | egrep -o &quot;:[0-9]+&quot;)\033[0m&quot;

# Проверить количество peers:
PORT=26657
curl -s http://localhost:$PORT/net_info | jq -r &#x27;.result.peers[] | &quot;\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(&quot;:&quot;)[2])&quot;&#x27; | wc -l

# Список моникеров подключенных peers:
curl -s http://localhost:$PORT/net_info | jq &#x27;.result.peers[].node_info.moniker&#x27;

# Проверка Vote Power онлайн:
curl -s localhost:26657/consensus_state | jq &#x27;.result.round_state.height_vote_set[0].prevotes_bit_array&#x27;</pre>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="1dXE" data-align="center">Proposls</h2>
  </section>
  <pre id="Yccv" data-lang="bash"># Cписок proposals:
$cli q gov proposals

# Голосовать за предложение:
$cli tx gov vote 1 yes --from $wallet_name --chain-id $chain_id --fees $amount$denom -y

# Создать предложение (простой пример):
$cli tx gov submit-proposal --title=&quot;Text&quot; \
--type=&quot;Text&quot; \
--description=&quot;Text&quot; \
--from $wallet_name \
--chain-id=$chain_id \
--gas=auto --gas-adjustment 1.5 --fees=$amount$denom

# Внести депозит в предложение, для запуска голосования:
$cli tx gov deposit $id_prop $amount$denom \
--from=$wallet_name \
--chain-id=$chain_id \
--gas=auto --gas-adjustment=1.5 --fees=$amount$denom</pre>
  <p id="3DrI"></p>
  <h2 id="dDBg"><em>Всем Удачи!</em></h2>
  <p id="441K"><em>P.S.: Комментарии и дополнения приветствуются.</em></p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/biEk--3EHot</guid><link>https://teletype.in/@mike-888/biEk--3EHot?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/biEk--3EHot?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Okp4</title><pubDate>Thu, 20 Oct 2022 14:20:48 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>OFFICIAL LINKS]]></description><content:encoded><![CDATA[
  <figure id="e37S" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <p id="qKWc"><strong>OFFICIAL LINKS</strong></p>
  <p id="iAWP"><a href="https://okp4.network/" target="_blank">Website</a> | <a href="https://www.linkedin.com/company/okp4-open-knowledge-platform-for" target="_blank">LinkedIn</a> | <a href="https://twitter.com/OKP4_Protocol" target="_blank">Twitter</a> | <a href="https://github.com/okp4" target="_blank">GitHub | </a><a href="https://t.me/okp4network" target="_blank">Telegram</a> <a href="https://t.me/okp4network" target="_blank">| </a><a href="https://blog.okp4.network/" target="_blank">Medium</a> | <a href="https://discord.gg/7bK2ysnKmB" target="_blank">Discord</a> | <a href="https://docs.okp4.network/docs/whitepaper/abstract" target="_blank">Whitepaper</a> | <a href="https://docs.okp4.network/docs/nodes/introduction" target="_blank">Docs</a> <br /></p>
  <p id="2Llu"><strong>1. Обновление пакетов и установка окружения</strong></p>
  <pre id="G6Ix" data-lang="bash">cd $HOME
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <p id="vYid"><strong>2. Установка Go</strong></p>
  <pre id="pZHc" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <p id="XYVs"><strong>3. Компиляция бинарного файла </strong></p>
  <pre id="UueU" data-lang="bash">cd $HOME
git clone https://github.com/okp4/okp4d.git
cd okp4d
make install
sudo mv $(which okp4d) /usr/local/bin/okp4d
cd $HOME</pre>
  <p id="uyHV"><strong>4. Инициализация узла и скачивание генезиса</strong> <br />Придумайте свое название ноды и задайте значение переменной <strong><em>$Okp4_Nodename</em></strong></p>
  <pre id="486P" data-lang="bash">okp4d init $Okp4_Nodename --chain-id okp4-nemeton
wget -qO $HOME/.okp4d/config/genesis.json &quot;https://raw.githubusercontent.com/okp4/networks/main/chains/nemeton/genesis.json&quot;</pre>
  <p id="1IPk"><strong>5. Добавление пиров</strong></p>
  <pre id="lTkP" data-lang="bash">peers=&quot;f595a1386d5ca2e0d2cd81d3c6372c3bf84bbd16@65.109.31.114:2280,a49302f8999e5a953ebae431c4dde93479e17155@162.19.71.91:26656,dc14197ed45e84ca3afb5428eb04ea3097894d69@88.99.143.105:26656,79d179ea2e1fbdcc0c59a95ab7f1a0c48438a693@65.108.106.131:26706,501ad80236a5ac0d37aafa934c6ec69554ce7205@89.149.218.20:26656,5fbddca54548bf125ee96bb388610fe1206f087f@51.159.66.123:26656,769f74d3bb149216d0ab771d7767bd39585bc027@185.196.21.99:26656,024a57c0bb6d868186b6f627773bf427ec441ab5@65.108.2.41:36656,fff0a8c202befd9459ff93783a0e7756da305fe3@38.242.150.63:16656,2bfd405e8f0f176428e2127f98b5ec53164ae1f0@142.132.149.118:26656,bf5802cfd8688e84ac9a8358a090e99b5b769047@135.181.176.109:53656,dc9a10f2589dd9cb37918ba561e6280a3ba81b76@54.244.24.231:26656,085cf43f463fe477e6198da0108b0ab08c70c8ab@65.108.75.237:6040,803422dc38606dd62017d433e4cbbd65edd6089d@51.15.143.254:26656,b8330b2cb0b6d6d8751341753386afce9472bac7@89.163.208.12:26656&quot;
sed -i.bak -e &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/&quot; $HOME/.okp4d/config/config.toml
sed -i &#x27;s/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g&#x27; $HOME/.okp4d/config/config.toml
sed -i &#x27;s/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g&#x27; $HOME/.okp4d/config/config.toml
sed -i.bak -e &quot;s/^minimum-gas-prices *=.*/minimum-gas-prices = \&quot;0.0uknow\&quot;/;&quot; ~/.okp4d/config/app.toml</pre>
  <p id="8vcv"><strong>6. Изменение настроек прунинга </strong></p>
  <pre id="pCfF" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.okp4d/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.okp4d/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.okp4d/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.okp4d/config/app.toml</pre>
  <p id="N2pX"><strong>7. Создание и запуск сервисного файла</strong></p>
  <pre id="ptq8" data-lang="bash">echo &quot;[Unit]
Description=Okp4 Node
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which okp4d) start --home $HOME/.okp4d
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/okp4d.service
sudo mv $HOME/okp4d.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable okp4d 

sudo systemctl restart okp4d</pre>
  <p id="4pd8"><strong>8. Создаём кошелек, сохраняем мнемонику</strong> <br />Придумайте свое название кошельку и задайте значение переменной <strong><em>$name_wallet</em></strong></p>
  <pre id="X7BG" data-lang="bash">okp4d keys add $name_wallet</pre>
  <p id="oVKV">Восстановление кошелька используя мнемонику</p>
  <pre id="xrbm" data-lang="bash">okp4d keys add $name_wallet --recover</pre>
  <p id="BcoI">Проверить синхронизирована ли нода, если результат <strong><em>false</em></strong> – значит нода синхронизирована</p>
  <pre id="Acny" data-lang="bash">curl -s localhost:26657/status | jq .result.sync_info.catching_up</pre>
  <p id="NAME"><strong>9. После того, как нода синхронизовалась нужно запросить тестовые токены.</strong></p>
  <p id="CY9v">Для этого переходим <a href="https://faucet.okp4.network/" target="_blank"><em><strong>Faucet.okp4.network</strong></em></a></p>
  <figure id="1EWj" class="m_column">
    <img src="https://img4.teletype.in/files/f6/d1/f6d1fd68-0f59-4a82-8fd6-ffdade13fd24.png" width="1365" />
  </figure>
  <p id="YPTv">Проверить баланс кошелька</p>
  <pre id="V7Zk" data-lang="bash">okp4d q bank balances ВАШ_АДРЕС_OKP4</pre>
  <p id="RRIx"><strong>10. Создаём валидатора </strong></p>
  <pre id="rbKJ" data-lang="bash">okp4d tx staking create-validator \
--moniker=&quot;$Okp4_Nodename&quot; \
--amount=1000000uknow \
--pubkey=$(okp4d tendermint show-validator) \
--chain-id=okp4-nemeton \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--min-self-delegation=1 \
--from=$name_wallet \
--yes </pre>
  <p id="WhwT"><strong><em>Не забывайте сделать buckup файла priv_validator_key.json  </em></strong></p>
  <p id="PTx9"></p>
  <h3 id="YGS0"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Okp4/Okp4%20State%20Sync%20.md" target="_blank"><em>Okp4 State Sync</em></a></h3>
  <h3 id="yk3T"><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Okp4/Okp4%20monitoring%20%7C%20alerting%20.md" target="_blank"><em><strong>Okp4 monitoring | alerting</strong></em></a></h3>
  <h3 id="XhbW"><a href="https://teletype.in/@kupriianov88/-5rZDK3Shn4" target="_blank"><em><strong>Полезные команды CLI в Сosmos sdk</strong></em></a></h3>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/4OdRaoVKfJf</guid><link>https://teletype.in/@mike-888/4OdRaoVKfJf?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/4OdRaoVKfJf?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Запуск ноды протокола KYVE используя Kysor (сеть kyve-beta)</title><pubDate>Wed, 28 Sep 2022 16:54:29 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Website | Medium | Youtube | GitHub | Telegram | Discord | Documentation
]]></description><content:encoded><![CDATA[
  <figure id="4wJs" class="m_original">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="NdmQ">OFFICIAL LINKS</h3>
  <p id="gLgg"><a href="https://www.kyve.network/" target="_blank">Website</a> | <a href="https://blog.kyve.network/?gi=27e95c72ea68" target="_blank">Medium</a> | <a href="https://www.youtube.com/channel/UCThrQRlVd2KKy2-e0tBgfpQ" target="_blank">Youtube</a> | <a href="https://github.com/KYVENetwork" target="_blank">GitHub</a> | <a href="https://t.me/kyvenet" target="_blank">Telegram</a> | <a href="https://discord.gg/v6An8TH3bD" target="_blank">Discord</a> | <a href="https://docs.kyve.network/" target="_blank">Documentation</a><br /></p>
  <hr />
  <section style="background-color:hsl(hsl(236, 74%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h3 id="Jj8M">Преимущества нового Kysor (сеть kyve-beta): </h3>
    <ul id="fm3J">
      <li id="qih0">Теперь в виде бинарного файла для: <strong><em>linux-arm64</em></strong>,<strong><em> linux-x64</em></strong>, <strong><em>macos-x64</em></strong></li>
      <li id="LBGv">Может управлять несколькими <strong><em>valaccounts</em></strong> и запускать несколько<strong><em> pools</em></strong> на одном сервере</li>
      <li id="G3QV">Можно запустить с помощью<em><strong> systemd</strong></em></li>
    </ul>
  </section>
  <h3 id="Orkp">1. Обновление пакетов и установка окружения</h3>
  <pre id="5XsY" data-lang="bash">sudo apt update &amp;&amp; sudo apt upgrade -y
apt update &amp;&amp; apt install unzip -y</pre>
  <h3 id="dnqd">2. Скачиваем и разархивируем последний релиз бинарных файлов Kysor</h3>
  <pre id="CI28" data-lang="bash">wget https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip
unzip kysor-linux-x64.zip
mv kysor-linux-x64 kysor
chmod +x kysor</pre>
  <pre id="wXbC" data-lang="bash"># Доступные бинарные файлы Kysor (скачивать не нужно)
# linux-arm64 -&gt; https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-arm64.zip
# linux-x64   -&gt; https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip
# macos-x64   -&gt; https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-macos-x64.zip</pre>
  <h3 id="L5BJ">3. arweave.json</h3>
  <p id="YylP">Существующий json файл переименовываем в <strong><em>arweave.json</em></strong> и загружаем на сервер в домашний каталог пользователя <strong><em>/root/</em></strong>, для загрузки файла на сервер можно использовать <a href="https://winscp.net/eng/download.php" target="_blank">winscp</a>, <a href="https://mobaxterm.mobatek.net/download-home-edition.html" target="_blank">mobaxterm</a> или <a href="https://filezilla.ru/" target="_blank">filezilla</a>.</p>
  <p id="76Zb"><strong>Инициализуем Kysor</strong></p>
  <pre id="8Ub2" data-lang="bash">./kysor init --network beta --auto-download-binaries</pre>
  <h3 id="CdIb">4. Для каждого пула, который вы запускаете должен быть создан valaccount. </h3>
  <p id="iwba">Файлы <em><strong>moonbeam.toml</strong></em>, <strong><em>avalance.toml</em></strong>, <strong><em>celo.toml</em></strong> вы можете найти в домашнем каталоге kysor в <em><strong>$HOME/.kysor/valaccounts/</strong></em>. Там вы можете просмотреть конфигурацию вашего <strong><em>valaccount</em></strong>.</p>
  <pre id="sxKR" data-lang="bash">./kysor valaccounts create \
--name moonbeam \
--pool 0 \
--storage-priv &quot;$(cat $HOME/arweave.json)&quot; \
--verbose 

#############################

./kysor valaccounts create \
--name avalance \
--pool 1 \
--storage-priv &quot;$(cat $HOME/arweave.json)&quot; \
--verbose 

#############################

./kysor valaccounts create \
--name celo \
--pool 2 \
--storage-priv &quot;$(cat $HOME/arweave.json)&quot; \
--verbose 
</pre>
  <h3 id="dsYJ">4. Создаем сервисные файлы </h3>
  <p id="sDBP">(<em><u>ничего менять не нужно)</u></em></p>
  <pre id="hUfx" data-lang="bash">echo &quot;[Unit]
Description=Moonbeam
After=network-online.target

[Service]
User=$USER
Type=simple
ExecStart=/$USER/kysor start --valaccount moonbeam
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; /etc/systemd/system/moonbeamd.service

#############################

echo &quot;[Unit]
Description=Celo
After=network-online.target

[Service]
User=$USER
Type=simple
ExecStart=/$USER/kysor start --valaccount celo
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; /etc/systemd/system/celod.service

#############################

echo &quot;[Unit]
Description=Avalance
After=network-online.target

[Service]
User=$USER
Type=simple
ExecStart=/$USER/kysor start --valaccount avalance
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; /etc/systemd/system/avalanced.service</pre>
  <h3 id="J0vO">5. Запускаем ноду в пуле Аvalance и смотрим логи</h3>
  <p id="teaP"><strong>В логах вы увидите ваш <em><u>Valladdress</u></em> и <em><u>Valname</u></em>. Используя эти данные нужно авторизироваться.</strong></p>
  <pre id="6tZo" data-lang="bash">systemctl daemon-reload
systemctl restart avalanced

# Посмотреть логи:
journalctl -u avalanced -f

# Остановить ноду:
systemctl stop avalanced</pre>
  <h3 id="VziP">6. Переходим в <a href="https://kyve-beta.netlify.app/#/" target="_blank">kyve-beta.netlify.app</a> и присоединяемся к пулу Аvalance<br /></h3>
  <figure id="ZArh" class="m_original">
    <img src="https://img2.teletype.in/files/1f/55/1f5533b0-6280-4a22-bc82-64310ac8a3d9.jpeg" width="1279" />
  </figure>
  <figure id="sHpM" class="m_original">
    <img src="https://img3.teletype.in/files/e3/97/e3971d5a-6d6a-4ac8-b513-9e36953481fe.jpeg" width="1279" />
  </figure>
  <figure id="WDrE" class="m_original">
    <img src="https://img1.teletype.in/files/40/2b/402bd3d6-e8d6-457b-b388-1b1347944140.jpeg" width="1279" />
  </figure>
  <figure id="0b6M" class="m_original">
    <img src="https://img2.teletype.in/files/de/ec/deec838f-2133-4eb5-89e0-607045f13cd3.jpeg" width="826" />
  </figure>
  <h3 id="q2rs">7. Повторяем процедуру запуска и авторизации для пула Сelo и Мoonbeam </h3>
  <p id="Jnis"><strong><u><em>(при необходимости)</em></u></strong></p>
  <pre id="tRrw" data-lang="bash">systemctl restart celod

# Посмотреть логи:
journalctl -u celod -f

# Остановить ноду:
systemctl stop celod

#############################

systemctl restart moonbeamd

# Посмотреть логи:
journalctl -u moonbeamd -f

# Остановить ноду:
systemctl stop moonbeamd</pre>
  <p id="fkBP"></p>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="Zy1U" data-align="center"><em><u>UPD KYSOR</u></em></h2>
  </section>
  <pre id="EQ9m" data-lang="bash">cd .kysor/
rm -rf upgrades logs cache
cd $Home
wget https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip
unzip kysor-linux-x64.zip
mv kysor-linux-x64 kysor
chmod +x kysor
./kysor init --network kyve-beta --auto-download-binaries

# Рестартим и смотрим логи (в нужном Pool)
systemctl restart moonbeamd
journalctl -u moonbeamd -f

systemctl restart avalanced
journalctl -u avalanced -f

systemctl restart celod
journalctl -u celod -f</pre>
  <p id="MGta"></p>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="HLxN" data-align="center">Запуск в пуле Uniswap</h2>
  </section>
  <p id="8q59">Для запуска создаём новый <strong><em>Web3 API key </em></strong>на <strong><a href="https://www.infura.io/" target="_blank">infura</a></strong></p>
  <figure id="OfBD" class="m_original">
    <img src="https://img4.teletype.in/files/fc/0e/fc0ea9fc-1d6a-4927-a24b-414e85e65d68.jpeg" width="849" />
  </figure>
  <h3 id="zeVu">Скачиваем и распаковываем бинарный файл</h3>
  <pre id="li79" data-lang="bash">wget https://github.com/KYVENetwork/node/releases/download/%40kyve%2Funiswap%400.0.3/kyve-linux-x64.zip
unzip kyve-linux-x64.zip
rm -rf kyve-linux-x64.zip</pre>
  <h3 id="SzCs">Создаём valaccount</h3>
  <p id="HDCd">Файл <strong><em>Uniswap.toml</em></strong> вы можете найти в домашнем каталоге kysor в <em><strong><code>$HOME/.kysor/valaccounts/</code></strong></em></p>
  <pre id="Jr15" data-lang="bash">./kysor valaccounts create \
--name Uniswap V3 USDC-ETH \
--pool 4 \
--storage-priv &quot;$(cat $HOME/arweave.json)&quot; \
--verbose</pre>
  <h3 id="kCnq">Создаем сервисный файл</h3>
  <p id="nlyj">(нужно заменить <code>YOUR_API_KEY</code>)</p>
  <pre id="77gH" data-lang="bash">echo &quot;[Unit]
Description=Uniswap
After=network-online.target

[Service]
User=$USER
Type=simple
ExecStart=/$USER/kysor start --valaccount Uniswap
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
Environment=&quot;INFURA_API_KEY=YOUR_API_KEY&quot;

[Install]
WantedBy=multi-user.target&quot; &gt; /etc/systemd/system/uniswap.service</pre>
  <h3 id="qkgj">Запускаем ноду в пуле Uniswap и смотрим логи</h3>
  <p id="xT4r">В логах вы увидите ваш <em><u><code>Valladdress</code></u></em> и <em><u><code>Valname</code></u></em>. Используя эти данные нужно авторизироваться [см. пункт 6 мануала ]</p>
  <pre id="1Zql" data-lang="bash">systemctl daemon-reload

systemctl restart uniswap

journalctl -u uniswap -f</pre>
  <p id="f3F1"></p>
  <section style="background-color:hsl(hsl(323, 50%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="rKTB" data-align="center">UPD KYSOR 1.0.0-beta.5</h2>
  </section>
  <h3 id="hjlf">Скачиваем бинарник</h3>
  <pre id="72J4" data-lang="bash">wget https://github.com/KYVENetwork/kyvejs/releases/download/%40kyve%2Fkysor%401.0.0-beta.5/kysor-linux-x64.zip
unzip kysor-linux-x64.zip
mv kysor-linux-x64 kysor
chmod +x kysor
sudo mv kysor /usr/local/bin/kysor</pre>
  <h3 id="03AN"><strong>Редактируем config.toml</strong></h3>
  <pre id="fy6O" data-lang="bash">nano .kysor/config.toml
# заменить
network = &quot;korellia&quot; на chainId = &quot;korellia&quot;
# добавить
rpc = &quot;https://rpc.korellia.kyve.network&quot;
rest = &quot;https://api.korellia.kyve.network&quot;</pre>
  <h3 id="eOx3">Должен выглядеть так</h3>
  <figure id="klHy" class="m_original">
    <img src="https://img2.teletype.in/files/96/95/96950dce-756c-4695-abaa-e624a7c71016.png" width="407" />
  </figure>
  <h3 id="hHCu">Рестартим запущенные пулы </h3>
  <h2 id="nG0o"><em>Всем Удачи!</em></h2>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/_126sNK_3Ty</guid><link>https://teletype.in/@mike-888/_126sNK_3Ty?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/_126sNK_3Ty?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Подача gentx Stateset-1-testnet</title><pubDate>Tue, 27 Sep 2022 11:03:21 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Ended Events</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>Documentation | Whitepaper | Discord | GitHub
]]></description><content:encoded><![CDATA[
  <h3 id="tCSZ">UPD - приём gentx окончен</h3>
  <figure id="Bwbs" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <h3 id="XKKU">OFFICIAL LINKS</h3>
  <p id="tuQ5"><a href="https://docs.stateset.io/stateset-docs/" target="_blank">Documentation | </a><a href="https://app.stateset.zone/stateset.pdf" target="_blank">Whitepaper | </a><a href="https://discord.gg/JybYmDcMb9" target="_blank">Discord | </a><a href="https://github.com/stateset" target="_blank">GitHub</a><br /></p>
  <h3 id="zhlx">1. Обновление пакетов и установка окружения</h3>
  <pre id="hjcb" data-lang="bash">cd $HOME
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="woa4">2. Установка Go</h3>
  <pre id="mLaM" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="dQ4O">3. Компиляция бинарного файла </h3>
  <pre id="hxQc" data-lang="bash">git clone https://github.com/stateset/core
cd core
git checkout v0.0.8
curl https://get.starport.network/starport! | bash
cp  ~/core/vue/src/store/generated/package.json  ~/core/vue/
starport chain build</pre>
  <h3 id="wKqe">4. Инициализация узла </h3>
  <p id="Azxm">Придумайте свое название ноды и задайте значение переменной <strong><em>$Stateset_Nodename</em></strong></p>
  <pre id="Ap2H" data-lang="bash">statesetd init $Stateset_Nodename --chain-id stateset-1-testnet</pre>
  <h3 id="yB7F">5. Создаём кошелек, сохраняем мнемонику </h3>
  <p id="01Ap">Придумайте свое название кошельку и задайте значение переменной <strong><em>$name_wallet</em></strong></p>
  <pre id="yqkg" data-lang="bash">statesetd keys add $name_wallet</pre>
  <pre id="1vug" data-lang="bash">statesetd add-genesis-account $(statesetd keys show $name_wallet -a) 10000000000ustate</pre>
  <h3 id="oJaa">6. Создаем gentx </h3>
  <p id="uuwH">Предварительно добавьте свои данные</p>
  <pre id="hiov" data-lang="bash">statesetd gentx $name_wallet 9000000000ustate \
  --commission-max-change-rate &quot;0.05&quot; \
  --commission-max-rate &quot;0.20&quot; \
  --commission-rate &quot;0.01&quot; \
  --chain-id=stateset-1-testnet \
  --moniker &quot;&quot; \
  --identity &quot;&quot; \
  --website &quot;&quot; \
  --details &quot;&quot; \
  --security-contact=&quot;&quot;</pre>
  <p id="iwv9"><strong>Получаем ответ </strong></p>
  <p id="6bYk">Путь к вашему <em><strong>gentx-ВАШ_НОМЕР.json</strong></em></p>
  <pre id="1ntf" data-lang="bash">Genesis transaction written to &quot;/root/.stateset/config/gentx/gentx-ВАШ_НОМЕР.json&quot;</pre>
  <h3 id="A76H">7. Делаем Fork репозитория <a href="https://github.com/stateset/networks" target="_blank">https://github.com/stateset/networks</a></h3>
  <figure id="JQEN" class="m_original">
    <img src="https://img3.teletype.in/files/a7/67/a7672060-a493-4043-bde5-3361a0c20cab.png" width="1365" />
  </figure>
  <h3 id="5wUc">8. В Forke репозитория переходим в папку networks/testnets/stateset-1-testnet/gentx/ и создаём новый файл </h3>
  <p id="ig3q">придумайте имя <em><strong>name.json</strong></em></p>
  <figure id="UF8m" class="m_original">
    <img src="https://img2.teletype.in/files/d0/d8/d0d8ad7a-2d9d-4c95-ad25-3ec3cfdff74f.png" width="1365" />
  </figure>
  <h3 id="Nws3">9. В командной строке на сервере копируем содержание файла </h3>
  <p id="91TM">заменить <em><strong>gentx-ВАШ_НОМЕР.json</strong></em> на свои данные</p>
  <pre id="eMrm" data-lang="bash">cat /root/.stateset/config/gentx/gentx-ВАШ_НОМЕР.json</pre>
  <p id="xSWv"><strong><u><em>Ниже пример моего файла gentx (не копировать)</em></u></strong></p>
  <pre id="gsp4">{&quot;body&quot;:{&quot;messages&quot;:[{&quot;@type&quot;:&quot;/cosmos.staking.v1beta1.MsgCreateValidator&quot;,&quot;description&quot;:{&quot;moniker&quot;:&quot;MA_Kupriianov&quot;,&quot;identity&quot;:&quot;8D8E37C00E16A546&quot;,&quot;website&quot;:&quot;https://github.com/88Mikhail88&quot;,&quot;security_contact&quot;:&quot;ipkupriyanov88@gmail.com&quot;,&quot;details&quot;:&quot;Home_Validator&quot;},&quot;commission&quot;:{&quot;rate&quot;:&quot;0.010000000000000000&quot;,&quot;max_rate&quot;:&quot;0.200000000000000000&quot;,&quot;max_change_rate&quot;:&quot;0.050000000000000000&quot;},&quot;min_self_delegation&quot;:&quot;1&quot;,&quot;delegator_address&quot;:&quot;stateset1s8lnwuz34ju27gm5ddrrckgdggjpk9nusn5sym&quot;,&quot;validator_address&quot;:&quot;statesetvaloper1s8lnwuz34ju27gm5ddrrckgdggjpk9nuf8dr2j&quot;,&quot;pubkey&quot;:{&quot;@type&quot;:&quot;/cosmos.crypto.ed25519.PubKey&quot;,&quot;key&quot;:&quot;asvyXp+8lSmiH8AJKZCGw4v0ofTUQGoY2mtAHLQFi0E=&quot;},&quot;value&quot;:{&quot;denom&quot;:&quot;ustate&quot;,&quot;amount&quot;:&quot;9000000000&quot;}}],&quot;memo&quot;:&quot;f004574041b08a79473415e22b393d24cac712a7@95.217.11.71:26656&quot;,&quot;timeout_height&quot;:&quot;0&quot;,&quot;extension_options&quot;:[],&quot;non_critical_extension_options&quot;:[]},&quot;auth_info&quot;:{&quot;signer_infos&quot;:[{&quot;public_key&quot;:{&quot;@type&quot;:&quot;/cosmos.crypto.secp256k1.PubKey&quot;,&quot;key&quot;:&quot;Ak4fj09NHaC9hSRuQU6cVXiss5pwIcAvY+oW2SYUr1Z7&quot;},&quot;mode_info&quot;:{&quot;single&quot;:{&quot;mode&quot;:&quot;SIGN_MODE_DIRECT&quot;}},&quot;sequence&quot;:&quot;0&quot;}],&quot;fee&quot;:{&quot;amount&quot;:[],&quot;gas_limit&quot;:&quot;200000&quot;,&quot;payer&quot;:&quot;&quot;,&quot;granter&quot;:&quot;&quot;}},&quot;signatures&quot;:[&quot;RWLexKQyIBy8v1YGkONQSUKaQR22k3JsMhDtAWI6W0w4JcAQOLHt5VCD7ZcOqehCbezMnXnEv74lzNMmID/fpQ==&quot;]}
</pre>
  <p id="nWDD"><strong>Вставляем содержание вашего файла <em>gentx и придумываем имя:</em></strong></p>
  <figure id="lkZS" class="m_original">
    <img src="https://img2.teletype.in/files/50/b0/50b04271-64ee-4b11-9ea7-11ca329b883b.png" width="1365" />
  </figure>
  <figure id="DUIl" class="m_original">
    <img src="https://img4.teletype.in/files/b7/2f/b72f1fc4-c560-4176-b727-01afa1aba2f5.png" width="1363" />
  </figure>
  <h3 id="MG0U">10. Создаем Pull Request</h3>
  <figure id="dtfS" class="m_original">
    <img src="https://img2.teletype.in/files/1c/d3/1cd3a7f6-587c-4bc0-afaa-d7408fd0b946.png" width="1365" />
  </figure>
  <figure id="DLHi" class="m_original">
    <img src="https://img1.teletype.in/files/86/10/8610415b-7355-4661-bee1-1df2c69e68cf.png" width="1365" />
  </figure>
  <figure id="CIwa" class="m_original">
    <img src="https://img4.teletype.in/files/71/0c/710cbd82-de6f-490d-bac4-7022c82a2677.png" width="1365" />
  </figure>
  <figure id="ovZZ" class="m_original">
    <img src="https://img4.teletype.in/files/f9/2f/f92f9bc5-1e9a-4080-a44d-265433dbf23b.png" width="1365" />
  </figure>
  <p id="GHb5"></p>
  <p id="wUdg"></p>
  <h3 id="wNtl">Если всё сделали правильно, свой gentx вы сможете найти здесь <a href="https://github.com/stateset/networks/pulls" target="_blank">https://github.com/stateset/networks/pulls</a></h3>
  <figure id="D5qw" class="m_original">
    <img src="https://img1.teletype.in/files/4a/dd/4add60ce-7b30-4c2b-a0f6-81245d9d0b5a.png" width="1365" />
  </figure>
  <h3 id="XhfB">Будет не лишним пройти в discord Stateset и оставить ссылку на ваш PR</h3>
  <figure id="dUxP" class="m_original">
    <img src="https://img2.teletype.in/files/53/0b/530b1ff6-1438-4b8f-adf4-406cbeb62134.png" width="982" />
  </figure>
  <figure id="eSWQ" class="m_original">
    <img src="https://img2.teletype.in/files/95/22/9522570b-b1e4-490f-987c-5536a81eceac.png" width="929" />
  </figure>
  <p id="J8cR"></p>
  <h3 id="HpAx"><em><u>Не забывайте сделать buckup необходимых файлов</u></em></h3>
  <p id="vxTS"></p>
  <h2 id="Jp0S"><em>Всем Удачи!</em></h2>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/XG1N1LgiFw6</guid><link>https://teletype.in/@mike-888/XG1N1LgiFw6?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/XG1N1LgiFw6?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Haqq</title><pubDate>Mon, 19 Sep 2022 18:07:48 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Ended Events</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>OFFICIAL LINKS
Website | Fatwa | Documentation | Whitepaper | Haqq Network | We are hiring  | Discord | Official Youtube]]></description><content:encoded><![CDATA[
  <h3 id="aXQC">UPD - инсентивайз окончен</h3>
  <figure id="7dnb" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <p id="Zoqe"><strong>OFFICIAL LINKS</strong><a href="https://islamiccoin.net/" target="_blank"><br />Website | </a><a href="https://islamiccoin.net/fatwa" target="_blank">Fatwa | </a><a href="https://islamiccoin.net/documentation" target="_blank">Documentation | </a><a href="https://islamiccoin.net/wp" target="_blank">Whitepaper | </a><a href="https://islamiccoin.net/haqq-network" target="_blank">Haqq Network | </a><a href="https://islamiccoin.net/join-us" target="_blank">We are hiring  | </a><a href="https://discord.gg/8qVqFdUqfE" target="_blank">Discord | </a><a href="https://www.youtube.com/channel/UCQqtQStp2Ba-PYIKnuf_Yeg" target="_blank">Official Youtube</a></p>
  <h3 id="EBvr">1. Обновление пакетов и установка окружения</h3>
  <pre id="6S1y" data-lang="bash">cd $HOME
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="4heM">2. Установка Go</h3>
  <pre id="0Kh5" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="v9rs">3. Компиляция бинарного файла </h3>
  <pre id="KbLG" data-lang="bash">cd $HOME
git clone https://github.com/haqq-network/haqq
cd haqq
git checkout v1.0.3
make install
sudo mv $HOME/haqq/build/haqqd /usr/local/bin/
cd $HOME</pre>
  <h3 id="4Xkm">4. Инициализация узла и скачивание генезиса </h3>
  <p id="BgiY">придумайте свое имя ноды и задайте значение переменной <strong><em>$Haqq_Nodename</em></strong></p>
  <pre id="oSd7" data-lang="bash">haqqd init $Haqq_Nodename --chain-id haqq_54211-2
wget -O $HOME/.haqqd/config/genesis.json https://raw.githubusercontent.com/haqq-network/validators-contest/master/genesis.json</pre>
  <h3 id="Ko2J">5. Добавление пиров</h3>
  <pre id="zmTA" data-lang="bash">peers=&quot;b3ce1618585a9012c42e9a78bf4a5c1b4bad1123@65.21.170.3:33656,952b9d918037bc8f6d52756c111d0a30a456b3fe@213.239.217.52:29656,85301989752fe0ca934854aecc6379c1ccddf937@65.109.49.111:26556,d648d598c34e0e58ec759aa399fe4534021e8401@109.205.180.81:29956,f2c77f2169b753f93078de2b6b86bfa1ec4a6282@141.95.124.150:20116,eaa6d38517bbc32bdc487e894b6be9477fb9298f@78.107.234.44:45656&quot;
sed -i.bak -e &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/&quot; $HOME/.haqqd/config/config.toml
sed -i &#x27;s/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g&#x27; $HOME/.haqqd/config/config.toml
sed -i &#x27;s/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g&#x27; $HOME/.haqqd/config/config.toml
sed -i.bak -e &quot;s/^minimum-gas-prices *=.*/minimum-gas-prices = \&quot;0.0aISLM\&quot;/;&quot; ~/.haqqd/config/app.toml</pre>
  <h3 id="82L3">6. Изменение настроек прунинга</h3>
  <p id="aO5z">для экономии места</p>
  <pre id="AJJM" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.haqqd/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.haqqd/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.haqqd/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.haqqd/config/app.toml</pre>
  <h3 id="ezcv">7. Создание и запуск сервиса</h3>
  <pre id="rfwF" data-lang="bash">echo &quot;[Unit]
Description=Haqq Node
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which haqqd) start
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/haqqd.service
sudo mv $HOME/haqqd.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable haqqd 

sudo systemctl restart haqqd </pre>
  <h3 id="NHST">8. Создаём кошелек, сохраняем мнемонику</h3>
  <p id="k7my">придумайте свое название кошельку и задайте значение переменной <strong><em>$name_wallet</em></strong></p>
  <pre id="cRNp" data-lang="bash">haqqd keys add $name_wallet</pre>
  <p id="P7MV">восстановление кошелька используя мнемонику</p>
  <pre id="xFgV" data-lang="bash">haqqd keys add $name_wallet --recover</pre>
  <p id="1tLN">Проверить синхронизирована ли нода, если результат <em><strong>false</strong></em> – значит нода синхронизирована</p>
  <pre id="9pKy" data-lang="bash">curl -s localhost:26657/status | jq .result.sync_info.catching_up</pre>
  <h3 id="N09Q">9. Запросите тестовые токены.</h3>
  <ul id="CCcu">
    <li id="RWF5">Для этого переходим <a href="https://testedge2.haqq.network/" target="_blank">Testedge2.Haqq.Network</a></li>
    <li id="cK6l">Проходим авторизацию через аккаунт <strong><em>GitHub</em></strong></li>
    <li id="lQeo">Подключаем свой кошелёк <strong><em>Metamask</em></strong> и запрашиваем на него тестовые токены (можно использовать любой адрес)</li>
  </ul>
  <figure id="XiU4" class="m_column">
    <img src="https://img1.teletype.in/files/cf/b3/cfb362ee-c8c1-4104-a1d3-4860b62c5460.png" width="996" />
  </figure>
  <ul id="FD23">
    <li id="aiih">В командной строке своей ноды запрашиваем (тем самым узнаём свой <strong><em>Address EIP-55</em></strong>)</li>
  </ul>
  <pre id="BqQY" data-lang="bash">haqqd debug addr &lt;ВАШ_АДРЕС_HAQQ&gt;</pre>
  <figure id="3gd4" class="m_column">
    <img src="https://img4.teletype.in/files/7f/86/7f86c591-8212-4392-a412-d2706a15b58f.png" width="836" />
  </figure>
  <ul id="WVAy">
    <li id="NHNa">Отправляем с <strong><em>Metamask</em></strong>-a полученные токены на <em><strong>Address EIP-55</strong></em> и проверяем баланс кошелька</li>
  </ul>
  <pre id="Svyh" data-lang="bash">haqqd q bank balances ВАШ_АДРЕС_HAQQ</pre>
  <h3 id="XuEa">10. Создаём валидатора   </h3>
  <pre id="aNDl" data-lang="bash">haqqd tx staking create-validator \
--moniker=&quot;$Haqq_Nodename&quot; \
--amount=1000000000000000000aISLM \
--fees 300aISLM \
--pubkey=$(haqqd tendermint show-validator) \
--chain-id=haqq_54211-2 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.10 \
--min-self-delegation=1 \
--from=$name_wallet \
--yes</pre>
  <p id="m2rO">Не забывайте сделать buckup файла <strong><em>priv_validator_key.json</em></strong></p>
  <p id="kDWd"><strong>Полезные команды</strong></p>
  <pre id="PiWe" data-lang="bash"># Посмотреть логи
journalctl -u haqqd -f -o cat

# Рестарт ноды:
systemctl restart haqqd

# Проверить показатели ноды:
curl localhost:26657/status

# Узнать свой valoper адрес:
haqqd keys show $name_wallet --bech val -a

# Делегировать (1 монета)
haqqd tx staking delegate VALOPER_ADDRESS 1000000000000000000aISLM --from $name_wallet --chain-id haqq_54211-2 --fees 500aISLM</pre>
  <h3 id="E7mU"></h3>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="C8jd" data-align="center"><u><em>UPD Haqq v1.1.0</em></u></h2>
  </section>
  <pre id="UJKW" data-lang="bash">systemctl stop haqqd
cd $HOME
rm -rf haqq
git clone https://github.com/haqq-network/haqq.git
cd haqq 
git checkout v1.1.0
make build
sudo mv build/haqqd $(which haqqd)

sudo systemctl restart haqqd
journalctl -u haqqd -f -o cat</pre>
  <h3 id="oGe2"></h3>
  <section style="background-color:hsl(hsl(34,  84%, var(--autocolor-background-lightness, 95%)), 85%, 85%);">
    <h2 id="6fiP" data-align="center"><u><em>UPD Haqq v1.2.0</em></u></h2>
  </section>
  <pre id="VK2Q" data-lang="bash">systemctl stop haqqd
cd $HOME
rm -rf haqq
git clone https://github.com/haqq-network/haqq.git
cd haqq
git checkout v1.2.0
make build
sudo mv build/haqqd $(which haqqd)

systemctl restart haqqd
journalctl -u haqqd -f -o cat</pre>
  <h3 id="WamM"><br /><u><em><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Haqq/Haqq%20State%20Sync%20.md" target="_blank">State Sync Haqq<br /><br /></a><a href="https://github.com/88Mikhail88/My_Testnets/blob/main/Haqq/Haqq%20monitoring%20%7C%20alerting%20.md" target="_blank">Haqq monitoring | alerting</a></em></u></h3>
  <h2 id="02kZ"><em>Всем Удачи!</em><br /></h2>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@mike-888/PS5608oUgKC</guid><link>https://teletype.in/@mike-888/PS5608oUgKC?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888</link><comments>https://teletype.in/@mike-888/PS5608oUgKC?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=mike-888#comments</comments><dc:creator>mike-888</dc:creator><title>Cosmic Horizon</title><pubDate>Mon, 05 Sep 2022 17:28:51 GMT</pubDate><media:content medium="image" url="https://img4.teletype.in/files/ff/ca/ffca2fe3-81b2-4e8f-934d-bbc6c2a0de31.png"></media:content><category>Cosmos Ecosystem</category><description><![CDATA[<img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg"></img>OFFICIAL LINKS
Discord | Website | Twitter | Telegram | Telegram (RU) | Telegram (TR) | GitHub | Whitepaper | Public Roadmap
]]></description><content:encoded><![CDATA[
  <figure id="8FKY" class="m_column">
    <img src="https://img4.teletype.in/files/ff/8a/ff8a3799-d93a-4748-974c-570e18574c3c.jpeg" width="1200" />
  </figure>
  <p id="XqOj"><strong>OFFICIAL LINKS<br /></strong><a href="https://discord.gg/jfSxbT4dbc" target="_blank">Discord | </a><a href="https://cosmic-horizon.com/" target="_blank">Website | </a><a href="https://twitter.com/Coho_Cosmos" target="_blank">Twitter | </a><a href="https://t.me/cosmic_horizon" target="_blank">Telegram | </a><a href="https://t.me/cosmicru" target="_blank">Telegram (RU) | </a><a href="https://t.me/cosmichorizonturkey" target="_blank">Telegram (TR) | </a><a href="https://github.com/Cosmic-Horizon" target="_blank">GitHub | </a><a href="https://docs.google.com/document/d/e/2PACX-1vSaIWZF6REwC6yQsj1KCFtmjKFZwMTdo7rdAxsv-JqL8cTJD1NIGq0UIm1X0qEO1w/pub" target="_blank">Whitepaper | </a><a href="https://cosmic-horizon.notion.site/Cosmic-Horizon-Public-Roadmap-d5facc0e546d4cbf9c3bb2ec9551ab53" target="_blank">Public Roadmap</a><br /></p>
  <h3 id="64w9">1. Обновление пакетов и установка окружения</h3>
  <pre id="yjHk" data-lang="bash">cd $HOME
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils htop -y &lt; &quot;/dev/null&quot;</pre>
  <h3 id="vvrA">2. Установка Go</h3>
  <pre id="IMpj" data-lang="bash">cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go &amp;&amp; tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz &amp;&amp; rm go1.18.4.linux-amd64.tar.gz
echo &#x27;export GOROOT=/usr/local/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GOPATH=$HOME/go&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export GO111MODULE=on&#x27; &gt;&gt; $HOME/.bash_profile
echo &#x27;export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin&#x27; &gt;&gt; $HOME/.bash_profile &amp;&amp; . $HOME/.bash_profile
go version</pre>
  <h3 id="4Jsu">3. Компиляция бинарного файла </h3>
  <pre id="ycTE" data-lang="bash">cd $HOME
git clone https://github.com/cosmic-horizon/coho.git
cd coho/
starport chain build
cd $HOME</pre>
  <h3 id="ergb">4. Инициализация узла и скачивание генезиса <br />(придумайте свое название ноды и задайте значение переменной $Сoho_Nodename)</h3>
  <pre id="9eax" data-lang="bash">
cohod init $Сoho_Nodename --chain-id darkenergy-1
wget -O $HOME/.coho/config/genesis.json https://raw.githubusercontent.com/cosmic-horizon/testnets/main/darkenergy-1/genesis.json</pre>
  <h3 id="0Ni4">5. Добавление пиров</h3>
  <pre id="Fff5" data-lang="bash">peers=&quot;cc297ea4d0735d714f5e1537ab04ceb29cf0682b@95.214.55.4:26656,3c9fd940daeccd52ca211ab8e366f0ef540ed254@195.3.221.12:26656,eefa94e12bec5efa2efef58d4e3b517f6e606f92@141.95.108.187:26656,34e2b93b4ca96687742c53dd2dea2de9e548f1b4@88.99.219.120:26656,f91f1434063abdcf69d80860a22836c286e077ca@65.21.132.27:26656,b2e6413a51757ca83684abfa6f7067ff0e525437@95.216.5.110:26656,7d7e7044af1c231dec855f7279bce15c292a3c3a@95.217.118.121:26656&quot;
sed -i.bak -e &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/&quot; $HOME/.coho/config/config.toml
sed -i &#x27;s/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g&#x27; $HOME/.coho/config/config.toml
sed -i &#x27;s/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g&#x27; $HOME/.coho/config/config.toml
sed -i.bak -e &quot;s/^minimum-gas-prices *=.*/minimum-gas-prices = \&quot;0.0ustrd\&quot;/;&quot; ~/.coho/config/app.toml
</pre>
  <h3 id="NEeH"><br />6. Изменение настроек прунинга  </h3>
  <pre id="eVuJ" data-lang="bash">recent=100
every=0
interval=10

sed -i.back &quot;s/pruning *=.*/pruning = \&quot;custom\&quot;/g&quot; $HOME/.coho/config/app.toml
sed -i &quot;s/pruning-keep-recent *=.*/pruning-keep-recent = \&quot;$recent\&quot;/g&quot; $HOME/.coho/config/app.toml
sed -i &quot;s/pruning-keep-every *=.*/pruning-keep-every = \&quot;$every\&quot;/g&quot; $HOME/.coho/config/app.toml
sed -i &quot;s/pruning-interval *=.*/pruning-interval = \&quot;$interval\&quot;/g&quot; $HOME/.coho/config/app.toml</pre>
  <h3 id="HEYX">7. Создание и запуск сервиса</h3>
  <pre id="mzzH" data-lang="bash">echo &quot;[Unit]
Description=Coho Node
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which cohod) start
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target&quot; &gt; $HOME/cohod.service
sudo mv $HOME/cohod.service /etc/systemd/system
sudo tee &lt;&lt;EOF &gt;/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable cohod 
sudo systemctl restart cohod 
</pre>
  <h3 id="C2PG">8. Создаём кошелек (сохранякм мнемонику)<br />придумайте свое название кошелька и задайте значение переменной $wallet.</h3>
  <pre id="jcn2" data-lang="bash">cohod keys add $wallet</pre>
  <p id="UO9L">Восстановление кошелька через мнемонику</p>
  <pre id="hsJi" data-lang="bash">cohod keys add $wallet --recover</pre>
  <h3 id="QRCI">9. Создаём валидатора   </h3>
  <pre id="8E7J" data-lang="bash">cohod tx staking create-validator \
--moniker=&quot;$Сoho_Nodename&quot; \
--amount=1000000ucoho \
--fees 300ucoho \
--pubkey=$(cohod tendermint show-validator) \
--chain-id=darkenergy-1 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.10 \
--min-self-delegation=1 \
--from=$wallet \
--yes</pre>
  <p id="j2XM">Не забывайте сделать buckup файла <strong>priv_validator_key.json</strong></p>

]]></content:encoded></item></channel></rss>