Changes

From Ravencoin Wiki
Jump to navigationJump to search
2,118 bytes added ,  13:01, 27 October 2018
#*''ravend'': which is the Ravencoin deamon, a program that implements the Ravencoin protocol for remote procedure calls (RPCs). In simple terms: it will run a wallet/node as a background process and you can send instructions to it.
#*''raven-cli'': which is the command line interface for Ravencoin that you can use to send instructions to ravend.
#Next up is starting the deamon (''ravend'') process to start the Ravencoin node.
#:<pre>
#::Ravend & </pre>
#Additionally, we are going to make a configuration file to set up ravencoin optimally for the raspberry pi.
#:<pre>
#::touch ~/.raven/raven.conf &#10;nano ~/.raven/raven.conf </pre> Enter the following lines:#:<pre>server=1 &#10;upnp=1 &#10;dbcache=800 &#10;maxmempool=50 &#10;disablewallet=1 &#10;logips=1 &#10;maxconnections=40 &#10;prune=42000 &#10;maxuploadtarget=5000 </pre> '''Note:''' It is important to set <code>server=1</code> otherwise you will not get incoming connections and <code>prune</code> lets your pi look at the last X MB of the chain. Adjust this value based on your SD size. <br /> To save: CTRL+O ENTER, To exit: CTRL+X.#Now you can start start ravend again to index the blockchain that you downloaded and to download the remaining bit (which may still take a day depending on your connection).#:<pre>#::Ravend & </pre># Ok, so suppose you are as impatient as I am and you want to know more about the progress of ''ravend'' downloading the block chain. To make this insightful we are going to make use a little scriptthat I found using google and slightly adapted ([https://bitcoin.stackexchange.com/users/83847/hiding-ninja original creator]). It will use ''raven-cli'' to get information from the deamon and we will extract the most useful information from it.#: <pre>#::touch ~/check_status.sh &#10;nano ~/check_status.sh </pre> Enter the following lines:#:<pre>#!/bin/bash &#10;count=$(/usr/local/bin/raven-cli getblockcount); &#10;/bin/echo "block count: $count"; &#10;hash=$(/usr/local/bin/raven-cli getblockhash $count); &#10;/bin/echo "block hash: $hash"; &#10;t=$(/usr/local/bin/raven-cli getblock "$hash" | grep '"time"' | awk '{print $2}' | sed -e 's/,$//g'); &#10;/bin/echo "block timestamp is: $t"; &#10;cur_t=$(date +%s); &#10;diff_t=$[$cur_t - $t]; &#10;/bin/echo -n "Difference is: "; &#10;/bin/echo $diff_t | /usr/bin/awk '{printf "%d days, %d:%d:%d\n",$1/(60*60*24),$1/(60*60)%24,$1%(60*60)/60,$1%60}'; </pre> To save: CTRL+O ENTER, To exit: CTRL+X. <br />TBCAnd to make it executable:#:<pre> chmod +x ~/check_status.sh </pre> You can now use the script to check the blockchain download status of ''ravend''.I noticed that it spits out an error if ''ravend'' is still indexing the blockchain (after startup) and that the first call to it is rather slow:#:<pre> ~/check_status.sh </pre>
== Connections and Security ==
== Final checks ==

Navigation menu