Running A Full Node

Jasi

Last Update há 3 meses

A node distributes your blockchain among the people who use your coin.

The second feature of a node is that it verifies the transactions of your coin.

It is not required that you run a hosted node on our hardware.


You can set up a node on your own VPS using the instructions in our learning center.


Use the following instructions to manually connect your wallet with a node.

Close your wallet and create the file dsfr.conf in the folder “%APPDATA%\DSFR\”.

Paste the following text into DSFR.conf and save the file.

addnode=REPLACE_WITH_YOUR_IP_OR_HOSTNAME

Replace the text “REPLACE_WITH_YOUR_IP_OR_HOSTNAME” with an IP address or hostname.

E.G. addnode=136.144.171.201 or etc..


What Is A Full Node?


A full node is a program that fully validates transactions and blocks. Almost all full nodes also help the network by accepting transactions and blocks from other full nodes, validating those transactions and blocks, and then relaying them to further full nodes.

Most full nodes also serve lightweight clients by allowing them to transmit their transactions to the network and by notifying them when a transaction affects their wallet. If not enough nodes perform this function, clients won’t be able to connect through the peer-to-peer network—they’ll have to use centralized services instead.


Many people and organizations volunteer to run full nodes using spare computing and bandwidth resources—but more volunteers are needed to allow DSFR to continue to grow. This document describes how you can help and what helping will cost you.


Getting started Windows


Use the following instructions to mine a block.

Open your wallet, and make sure your wallet is connected with a node.

Your wallet is connected when you see the icon Wallet connections Scrypt and SHA256 in the lower right corner of your wallet.

The message “Syncing Headers (0,0%)” will disappear once you mine your first block.


Close your wallet and create the file dsfr.conf in the folder “%APPDATA%\dsfr\”.


Paste the following text into dsfr.conf and save the file.

rpcuser=rpc_dsfr

rpcpassword= asihjdoiashdohadoshiad

rpcallowip=127.0.0.1

rpcport=23293

listen=1

server=1



Open your wallet.

Create a .bat file named mine.bat in the same folder where you extracted dsfr-cli.exe and paste the following text into mine.bat.


@echo off

set SCRIPT_PATH=%cd%

cd %SCRIPT_PATH%

echo Press [CTRL+C] to stop mining.

:begin

dsfr-cli.exe generate 1



Save the file.

Execute mine.bat to start mining your first block.

It will take about +/- 30 minutes to mine your first block, depending on your computer hardware.


Getting started for macOS


Use the following instructions to mine a block.

Open your wallet, and make sure your wallet is connected with a node.

Your wallet is connected when you see the icon Wallet connections Scrypt and SHA256 in the lower right corner of your wallet.

The message “Syncing Headers (0,0%)” will disappear once you mine your first block.

Close your wallet and create the file dsfr.conf in the folder “$HOME/Library/Application Support/DSFR/”.


Paste the following text into dsfr.conf and save the file.

rpcuser=rpc_dsfr

rpcpassword=0ba9c97440ef7f6c192d08762

rpcallowip=127.0.0.1

rpcport=23293

listen=1

server=1


Open your wallet.


Create a file named mine.sh and paste the following text into mine.sh.

#!/bin/bash

SCRIPT_PATH=`pwd`;

cd $SCRIPT_PATH

echo Press [CTRL+C] to stop mining.

while :

do

./dsfr-cli generate 1


done

Save the file.

Click the Finder icon in your dock.

Click Go.

Click Utilities.

Double-click Terminal.

Go to the directory where you extracted dsfr-qt.

E.G. cd Downloads


Execute the following command in Terminal to make mine.sh executable.

chmod +x mine.sh

Execute the following command in Terminal to start mining your first block.

./mine.sh

It will take about +/- 30 minutes to mine your first block, depending on your computer hardware.


Getting started for Raspberry Pi


Use the following instructions to mine a block.

Update your Raspberry Pi.

sudo apt-get update

sudo apt-get upgrade

Install the required dependencies.

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev

sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common


Install Berkeley DB from source code.


wget https://download.oracle.com/berkeley-db/db-4.8.30.zip


unzip db-4.8.30.zip


cd db-4.8.30


cd build_unix/../dist/configure --prefix=/usr/local --enable-cxx


make


sudo make install


Configure environment variable.


export LD_LIBRARY_PATH="/usr/local/lib"


Open your wallet, and make sure your wallet is connected with a node.

Your wallet is connected when you see the icon Wallet connections Scrypt and SHA256 in the lower right corner of your wallet.

The message “Syncing Headers (0,0%)” will disappear once you mine your first block.

Close your wallet and create the file dsfr.conf in the folder “$HOME/.dsfr/”.


Paste the following text into dsfr.conf and save the file.


rpcuser=rpc_dsfr

rpcpassword=0973ed92f7b9724cf976c3932

rpcallowip=127.0.0.1

rpcport=23293

listen=1

server=1


Open your wallet.


Create a file named mine.sh and paste the following text into mine.sh.

#!/bin/bash

SCRIPT_PATH=`pwd`;

cd $SCRIPT_PATH

echo Press [CTRL+C] to stop mining.

while :

do

dsfr-cli generate 1


done


Save the file.

Open the terminal on your Raspberry Pi.

Go to the directory where you extracted dsfr-qt.

E.G. cd Downloads

Execute the following command in Terminal to make mine.sh executable.

chmod +x mine.sh

Execute the following command in Terminal to start mining your first block.

./mine.sh

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us