The Core wallet was compiled on the latest distribution release of Raspbian OS(Stretch 2018-06-27)
sudo dphys-swapfile swapoff
sudo nano /etc/dphys-swapfile
We are going to change the default size of the swap file from 100 to 2048.
CONF_SWAPSIZE=100
CONF_SWAPSIZE=2048
Press CTRL-X and then Y, then Enter to save the file.
Run the commands below to initiate this new swap file.
sudo dphys-swapfile setup && sudo dphys-swapfile swapon
sudo sysctl vm.swappiness=20
sudo nano /etc/sysctl.conf
vm.swappiness=20
CTRL-X and then Y, then Enter to save the file.The reason we are uninstalling libssl-dev is that it requires an older version to compile the wallet on Raspbian Stretch.
Copy and paste the entire commands below.
sudo apt-get update &&
sudo apt-get install -y build-essential git autoconf libminiupnpc-dev openssl libevent-dev libtool libboost-all-dev qt4-dev-tools libprotobuf-dev libqrencode-dev autoconf libdb-dev protobuf-compiler libdb4.8++ libdb5.3++-dev &&
sudo apt-get remove -y libssl-dev
Edit the file "/etc/apt/sources.list".
sudo nano /etc/apt/sources.list
stretch main contrib non-free rpi
stretch to jessieCTRL-X and then Y, then Enter to save the file.libssl-devsudo apt-get update && sudo apt-get install -y libssl-dev
sources.listsudo nano /etc/apt/sources.list
jessie main contrib non-free rpi
jessie back to stretchCTRL-X and then Y, then Enter to save the file.mkdir ~/bin &&
cd ~/bin &&
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz &&
tar -xzvf db-4.8.30.NC.tar.gz &&
cd db-4.8.30.NC/build_unix/ &&
../dist/configure --enable-cxx &&
make &&
sudo make install &&
cd ~/bin
git clone https://github.com/BitFdev/BitF-source-code &&
cd BitF-source-code &&
sudo chown -R pi:pi ~/bin/BitF-source-code &&
./autogen.sh &&
./configure --disable-tests --enable-upnp-default --with-incompatible-bdb --without-gui --with-libressl &&
make &&
sudo make install &&
cd ~
mkdir ~/.BitF
sudo nano ~/.BitF/BitF.conf
yourmadeusername and yourmadepassword to your own name and password.rpcuser=yourmadeusername
rpcpassword=yourmadepassword
rpcallowip=127.0.0.1
port=7337
listen=0
server=1
daemon=1
logtimestamps=1
maxconnections=256
addnode=167.99.183.252
addnode=178.128.25.138
addnode=178.128.43.83
addnode=178.128.39.66
addnode=178.128.32.217
addnode=209.97.182.142
addnode=178.128.39.66
addnode=178.128.32.217
addnode=209.97.182.142
PressCTRL-X and then Y, then Enter to save the file.
Start the daemon and let it sync.
BitFd
tail -f ~/.BitF/debug.log
CTRL-c to exitYOUR_PASSWORD to your own password.BitF-cli encryptwallet YOUR_PASSWORD
TIMEOUT_TIME is the timeout period for how long the wallet will be unlocked.BitF-cli walletpassphrase YOUR_PASSWORD TIMEOUT_TIME
YOUR_WALLET_NAME to your own wallet name.BitF-cli getnewaddress YOUR_WALLET_NAME
YOUR_PASSWORD to your own password, 99999999 is the timeout period for how long the wallet will be unlocked, but is enabled for staking only with true.BitF-cli walletpassphrase YOUR_PASSWORD 99999999 true
BitF-cli getstakingstatus
{
"validtime": true,
"haveconnections": true,
"walletunlocked": true,
"mintablecoins": true,
"enoughcoins": true,
"mnsync": true,
"staking status": true
}
BitF-cli backupwallet ~/Backup.BitF-cli backupwallet ~/YOUR_DESTINATION_DIRECTORY
BitF-cli help
Website: https://www.bitf.cc/
Twitter: https://twitter.com/BitFdev
Telegram: https://t.me/BitFChat
Github: https://github.com/BitFdev
Block Explorer: http://blockexplorer.bitf.cc/