<?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>vbloher</title><generator>teletype.in</generator><description><![CDATA[vbloher]]></description><image><url>https://img3.teletype.in/files/60/a6/60a61a28-faa6-4428-8151-c2a556db6a86.png</url><title>vbloher</title><link>https://teletype.in/@vbloher</link></image><link>https://teletype.in/@vbloher?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=vbloher</link><atom:link rel="self" type="application/rss+xml" href="https://teletype.in/rss/vbloher?offset=0"></atom:link><atom:link rel="next" type="application/rss+xml" href="https://teletype.in/rss/vbloher?offset=10"></atom:link><atom:link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></atom:link><pubDate>Thu, 30 Apr 2026 16:09:29 GMT</pubDate><lastBuildDate>Thu, 30 Apr 2026 16:09:29 GMT</lastBuildDate><item><guid isPermaLink="true">https://teletype.in/@vbloher/state-sync-rpc</guid><link>https://teletype.in/@vbloher/state-sync-rpc?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=vbloher</link><comments>https://teletype.in/@vbloher/state-sync-rpc?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=vbloher#comments</comments><dc:creator>vbloher</dc:creator><title>How to set up a Tendermint node for work as a State-Sync RPC server</title><pubDate>Wed, 16 Mar 2022 10:45:07 GMT</pubDate><media:content medium="image" url="https://img2.teletype.in/files/5f/dc/5fdc3a49-091a-4c7c-9f85-a1bd77958ba9.png"></media:content><description><![CDATA[<img src="https://miro.medium.com/max/1400/1*D9eXKEqh53EQLTLgbeS8_A.png"></img>State-Sync snapshots allow other nodes to rapidly join the network without replaying historical blocks, instead downloading and applying a snapshot of the application state at a given height.]]></description><content:encoded><![CDATA[
  <figure id="u1rV" class="m_column">
    <img src="https://miro.medium.com/max/1400/1*D9eXKEqh53EQLTLgbeS8_A.png" width="1400" />
  </figure>
  <p id="iQyG">State-Sync snapshots allow other nodes to rapidly join the network without replaying historical blocks, instead downloading and applying a snapshot of the application state at a given height.</p>
  <p id="p95x">Step by step gude how to configure Cosmic-Horizon node for work as State-Sync RPC server</p>
  <pre id="DGsX" data-lang="bash"># set variables
CHAIN_HOME=$HOME/.coho
CHAIN_SERVICE=cohod

# make your node discoverable from public network
laddr=&quot;tcp://0.0.0.0:26657&quot;
sed -i.bak -e &quot;s/^laddr *=.*/laddr = \&quot;$laddr\&quot;/&quot; $CHAIN_HOME/config/config.toml

# configure pruning to custom value
# pruning = custom
# pruning-keep-recent = 100
# pruning-keep-every = 1000
# pruning-interval = 10
sed -i &#x27;s/pruning = &quot;default&quot;/pruning = &quot;custom&quot;/g&#x27; $CHAIN_HOME/config/app.toml
sed -i &#x27;s/pruning-keep-recent = &quot;0&quot;/pruning-keep-recent = &quot;100&quot;/g&#x27; $CHAIN_HOME/config/app.toml
sed -i &#x27;s/pruning-keep-every = &quot;0&quot;/pruning-keep-every = &quot;1000&quot;/g&#x27; $CHAIN_HOME/config/app.toml
sed -i &#x27;s/pruning-interval = &quot;0&quot;/pruning-interval = &quot;10&quot;/g&#x27; $CHAIN_HOME/config/app.toml

# set snapshot-interval
sed -i &#x27;s/snapshot-interval = 0/snapshot-interval = 2000/g&#x27; $CHAIN_HOME/config/app.toml

# restart node service
sudo systemctl restart $CHAIN_SERVICE

# check logs
sudo journalctl -u $CHAIN_SERVICE -f</pre>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@vbloher/state-sync-bootstrap</guid><link>https://teletype.in/@vbloher/state-sync-bootstrap?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=vbloher</link><comments>https://teletype.in/@vbloher/state-sync-bootstrap?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=vbloher#comments</comments><dc:creator>vbloher</dc:creator><title>How to bootstrap any tendermint (cosmos) node using State-Sync</title><pubDate>Wed, 16 Mar 2022 10:20:45 GMT</pubDate><media:content medium="image" url="https://img2.teletype.in/files/5f/dc/5fdc3a49-091a-4c7c-9f85-a1bd77958ba9.png"></media:content><description><![CDATA[<img src="https://miro.medium.com/max/1400/1*D9eXKEqh53EQLTLgbeS8_A.png"></img>State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in the network to take and serve state machine snapshots.]]></description><content:encoded><![CDATA[
  <figure id="NE00" class="m_column">
    <img src="https://miro.medium.com/max/1400/1*D9eXKEqh53EQLTLgbeS8_A.png" width="1400" />
  </figure>
  <p id="uddI">State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in the network to take and serve state machine snapshots.</p>
  <p id="LCsD">Step by step gude how to bootstrap Cosmic-Horizon darkmatter-1 testnet chain </p>
  <pre id="c7uo" data-lang="bash"># set variables
CHAIN_HOME=$HOME/.coho
CHAIN_SERVICE=cohod
CHAIN_BINARY=cohod

# set rpc endpoints and peers
SNAPSHOT_RPC1=&quot;http://62.171.147.117:26657&quot;
SNAPSHOT_RPC2=&quot;http://62.171.152.201:26657&quot;
PEER1=&quot;c3e5f8aecac83085fcde58b2f065e53516046d96@62.171.147.117:26656&quot;
PEER2=&quot;6a1dfc3489df0f69c6cea0ddfc6c5975bc71f236@62.171.152.201:26656&quot;

# stop the chain service and perform reset
sudo systemctl stop $CHAIN_SERVICE &amp;&amp; $CHAIN_BINARY unsafe-reset-all

# set state sync config variables
LATEST_HEIGHT=$(curl -s $SNAPSHOT_RPC1/block | jq -r .result.block.header.height)
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000))
TRUST_HASH=$(curl -s &quot;$SNAPSHOT_RPC1/block?height=$BLOCK_HEIGHT&quot; | jq -r .result.block_id.hash)

# check
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

# set peers
peers=&quot;$PEER1,$PEER2&quot;
sed -i.bak -e &quot;s/^persistent_peers *=.*/persistent_peers = \&quot;$peers\&quot;/&quot; $CHAIN_HOME/config/config.toml

# write config to config.toml (onde command)
sed -i.bak -E &quot;s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\&quot;$SNAPSHOT_RPC1,$SNAPSHOT_RPC2\&quot;| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\&quot;$TRUST_HASH\&quot;| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\&quot;\&quot;|&quot; $CHAIN_HOME/config/config.toml

# start the service
sudo systemctl start $CHAIN_SERVICE

# check a logs
sudo journalctl -u $CHAIN_SERVICE -f</pre>

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