<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by nightwind1899 on Medium]]></title>
        <description><![CDATA[Stories by nightwind1899 on Medium]]></description>
        <link>https://medium.com/@nightwind1899?source=rss-3cbaa98e0ef7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hKEeDEOePVBp2DH9Hz436Q.jpeg</url>
            <title>Stories by nightwind1899 on Medium</title>
            <link>https://medium.com/@nightwind1899?source=rss-3cbaa98e0ef7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 22:52:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nightwind1899/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An auto restart script for “Hemi CLI Pop Miner” with auto fee setting support]]></title>
            <link>https://medium.com/@nightwind1899/an-auto-restart-script-for-hemi-cli-pop-miner-with-auto-fee-setting-support-436ccd728c03?source=rss-3cbaa98e0ef7------2</link>
            <guid isPermaLink="false">https://medium.com/p/436ccd728c03</guid>
            <category><![CDATA[hemi]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[l2]]></category>
            <category><![CDATA[eth]]></category>
            <dc:creator><![CDATA[nightwind1899]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 12:08:59 GMT</pubDate>
            <atom:updated>2024-10-27T20:38:14.489Z</atom:updated>
            <content:encoded><![CDATA[<p>Hemi CLI Pop miner often suffers network congestion or server intermittent due to overloaded mempool making the POP_STATIC_FEE that is set unable to mine any keystones. We cannot do much from out end apart from making sure to keep up with the changing fees but it’s a tedious task to keep monitoring it 24x7, hence I’ve build this script that changes the fees every 8 hours.</p><p>To run this, head to the path where you’ve placed the pop miner (e.g. /home/&lt;username&gt;/heminetwork_v0.X.X_linux_amd64) in a terminal and follow the steps below.</p><p>1. Fetch the script from my Github repo:</p><pre>$ wget https://raw.githubusercontent.com/0xnightwind/HemiPopMiner/refs/heads/main/hemi_auto_runner.sh</pre><p>2. Give it execution perms:</p><pre>chmod +x hemi_auto_runner.sh</pre><p>3. Run it:</p><pre>./hemi_auto_runner.sh</pre><p>Do let me know for any suggestions/comments/improvements, I’m reachable at:</p><p>TG: <a href="https://t.me/nightwind18">https://t.me/nightwind18</a></p><p>X: <a href="https://x.com/nightwind878156">https://x.com/nightwind878156</a></p><p>Discord: nightwind5428</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=436ccd728c03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Script to monitor nillion docker container]]></title>
            <link>https://medium.com/@nightwind1899/nillion-accuser-script-to-spin-up-a-container-if-the-existing-one-died-2c2014d8e652?source=rss-3cbaa98e0ef7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c2014d8e652</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[nillion]]></category>
            <dc:creator><![CDATA[nightwind1899]]></dc:creator>
            <pubDate>Mon, 02 Sep 2024 15:42:38 GMT</pubDate>
            <atom:updated>2024-09-26T15:45:38.690Z</atom:updated>
            <content:encoded><![CDATA[<p>Script to monitor nillion docker container</p><p><strong>DISCLAIMER: This script might contain potential bugs, do report back to me if you find one and I’ll fix it. I’m not liable for any of your loses. Please run only if you understand the script.</strong></p><p>Nillion nodes are prone to RPC failures, they can stop the accuser or constaint tendermint/rpc errors can prevent your accuser from accusing, and it’s a pain to keep track of it everyday, so I wrote a bash script that would check at every 5 minutes if the nillion docker container is operatinal and there are no rpc failures recoded in last 500 lines of log (can be tweaked bu changing variable in the script), if not it would pick one of the three RPCs, and instantiate a new container.</p><pre>#!/bin/bash<br><br>CONTAINER_PREFIX=&quot;nillion&quot;<br>declare -a rpc_arr=(&quot;https://nillion-testnet.rpc.kjnodes.com&quot;<br>                    &quot;https://nillion-testnet-rpc.polkachu.com&quot;<br>                    &quot;https://testnet-nillion-rpc.lavenderfive.com&quot;<br>                    &quot;https://nillion-testnet.rpc.nodex.one&quot;)<br>ARR_LEN=${#rpc_arr[@]}<br><br>failure_cnt=0<br>MAX_FAILURES=100<br>SLEEP=300<br>rpc_index=0<br><br>find_container_id_from_all_containers() {<br>    local ID<br>    ID=$(docker ps -a | grep $CONTAINER_PREFIX | awk &#39;{print $1}&#39;)<br>    if [ -z &quot;$ID&quot; ]; then<br>        echo &quot;&quot;<br>    else<br>        echo &quot;$ID&quot;<br>    fi<br>}<br><br>find_container_id_from_running_containers() {<br>    local ID<br>    ID=$(docker ps | grep $CONTAINER_PREFIX | awk &#39;{print $1}&#39;)<br>    if [ -z &quot;$ID&quot; ]; then<br>        echo &quot;&quot;<br>    else<br>        echo &quot;$ID&quot;<br>    fi<br>}<br><br>clean_and_instantiate_a_container() {<br>    echo &quot;Starting a new container...&quot;<br><br>    docker ps -a | grep $CONTAINER_PREFIX | awk &#39;{print $1}&#39; | xargs -I {} docker stop {} &amp;&amp; \<br>    docker ps -a | grep $CONTAINER_PREFIX | awk &#39;{print $1}&#39; | xargs -I {} docker rm {}<br><br>    echo &quot;Using RPC endpoint: $1&quot;<br>    docker run -d -v ./nillion/accuser:/var/tmp nillion/verifier:v1.0.1 verify --rpc-endpoint $1<br><br>    echo &quot;Sleeping for 60 seconds to check if container didn&#39;t exit...&quot;<br>    sleep 60<br><br>    if [[ $? -ne 0 || -z &quot;$(find_container_id_from_running_containers)&quot; ]]; then<br><br>        return 1<br>    fi<br><br>    echo &quot;Container is running&quot;<br>    return 0<br>}<br><br>is_rpc_error() {<br>    CONTAINER_ID=$(find_container_id_from_running_containers)<br>    ERROR_LINE=&quot;Error from tendermint rpc&quot;<br>    file=&quot;nillion_container_logs.txt&quot;<br>    chunk_size=25<br>    last_error=&quot;&quot;<br><br>    echo &quot;Fetching last 500 lines from $CONTAINER_ID logs and storing in $file&quot;<br>    docker logs --tail 500 &quot;$CONTAINER_ID&quot; &gt; &quot;$file&quot;<br><br>    total_lines=$(wc -l &lt; &quot;$file&quot;)<br>    echo &quot;Total lines in $file: $total_lines&quot;<br><br>    echo &quot;Checking for RPC error&quot;<br><br>    end_line=$total_lines<br><br>    while [ &quot;$end_line&quot; -gt 0 ]; do<br>        start_line=$((end_line - chunk_size + 1))<br>        if [ $start_line -lt 1 ]; then<br>            start_line=1<br>        fi<br><br>        chunk=$(sed -n &quot;${start_line},${end_line}p&quot; &quot;$file&quot;)<br><br>        last_error=$(grep -m 1 &quot;$ERROR_LINE&quot; &lt;&lt;&lt; &quot;$chunk&quot;)<br><br>        if [[ -n &quot;$last_error&quot; ]]; then<br>            echo &quot;Error: $ERROR_LINE found in line range $start_line-$end_line!!!&quot;<br>            return 0<br>        fi<br>        end_line=$((start_line - 1))<br>    done<br><br>    echo &quot;No RPC error found in $CONTAINER_ID&quot;<br>    return 1<br>}<br><br><br>while true; do<br>    CONTAINER_ID=$(find_container_id_from_all_containers)<br><br>    if [ $rpc_index -ge $ARR_LEN ]; then<br>        rpc_index=0<br>    fi<br><br>    if [[ -z &quot;$CONTAINER_ID&quot; || -z &quot;$(docker ps -q -f id=&quot;$CONTAINER_ID&quot;)&quot; ]]; then<br>        if [ -z &quot;$CONTAINER_ID&quot; ]; then<br>            echo &quot;No container is running.&quot;<br>        else<br>            echo &quot;Container $CONTAINER_ID has stopped.&quot;<br>        fi<br>        ((failure_cnt++))<br><br>        if [ $failure_cnt -ge $MAX_FAILURES ]; then<br>            echo &quot;Maximum failure count ($MAX_FAILURES) reached. Stopping script.&quot;<br>            exit 1<br>        fi<br><br>        clean_and_instantiate_a_container &quot;${rpc_arr[$rpc_index]}&quot;<br><br>        if [[ $? -eq 1 ]]; then<br>            ((rpc_index++))<br>            continue<br>        fi<br><br>        ((rpc_index++))<br>    elif is_rpc_error; then<br>        clean_and_instantiate_a_container &quot;${rpc_arr[$rpc_index]}&quot;<br><br>        if [[ $? -eq 1 ]]; then<br>            ((rpc_index++))<br>            continue<br>        fi<br><br>        ((rpc_index++))<br>    else<br>        echo &quot;Nillion container $(find_container_id_from_running_containers) is working fine, sleeping $SLEEP seconds...&quot;<br>        sleep $SLEEP<br>    fi<br>done</pre><p>Then:</p><ul><li>Use nano/vim or any text editor of your choice and save this as nillion_monitor.sh (fyi name can be anything).</li><li>chmod +x nillion_monitor.sh</li><li>Then run it ./nillion_monitor.sh</li></ul><p>You can also create a service using systemd but I prefer to keep it running in a screen.</p><p>My discord: nightwind5428</p><p>My telegram: <a href="https://t.me/nightwind18">https://t.me/nightwind18</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c2014d8e652" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin halving events have historically provided global investors with successive bullish momentum…]]></title>
            <link>https://medium.com/@nightwind1899/bitcoin-halving-events-have-historically-provided-global-investors-with-successive-bullish-momentum-814227ab5b98?source=rss-3cbaa98e0ef7------2</link>
            <guid isPermaLink="false">https://medium.com/p/814227ab5b98</guid>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[nightwind1899]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 22:42:22 GMT</pubDate>
            <atom:updated>2024-04-06T22:42:22.533Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://economictimes.indiatimes.com/news/bitcoin">Bitcoin</a> halving events have historically provided global investors with successive bullish momentum that have often resulted in all-time high levels. As the Bitcoin halving event in 2024 approaches on April 19, questions have been raised about whether the market will repeat itself once again or not. Investors are waiting eagerly for the appropriate moment to invest in the world’s largest <a href="https://economictimes.indiatimes.com/markets/cryptocurrency">cryptocurrency</a>, with lingering questions about whether it would be the right time to invest.</p><p>Bitcoin <a href="https://economictimes.indiatimes.com/topic/price">price</a> action history suggests that similar to the halving events of the past, the halving event on April 19 could provide an opportunity for investors to invest their <a href="https://economictimes.indiatimes.com/definition/capital">capital</a> in the cryptocurrency. It showed a steep climb from $42,000 at the beginning of the year to $72,000 on March 12 to establish a brand new all-time high level. The development came only a week after it had toppled the 2021 all-time high of $68,729. During this time, the US Federal Reserve maintained the interest rates. However, the rates are expected to be slashed in the later months of 2024.</p><p>The price action of the world’s largest cryptocurrency might also be influenced by unknown and dynamic macroeconomic conditions. 2024 is experiencing more than half of the world population voting to select their respective governments. While this can be one of the influencing aspects for BTC’s price, two major factors will influence the volatility more. One of these factors will be the approval of 11 spot Bitcoin ETFs following prolonged delay, while the other is the arrival time of the ETF — right before the BTC halving event. For the first, the approval has helped establish Bitcoin as a reliable global asset class. The approved ETFs are accumulating 30% of the cryptocurrency’s total capital inflow till March 13 — more than $2 billion in worth. For the second, the halving event will diminish Bitcoin’s global supply, leading to a reduction in mining yields from 900 to almost half of the previous levels. While halving events have a positive effect on the price action of the cryptocurrency, the upcoming event is being projected as additionally pivotal in the history of the virtual digital asset.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=814227ab5b98" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>