SpartanCoin Project - Fossil Code Repository

Update of "Build SpartanCoin On Arch Linux"
Login
Overview

Artifact ID: bc9e9682dbf840cf8ca85419d1aedd5721b73fe95a005846f222255321314722
Page Name:Build SpartanCoin On Arch Linux
Date: 2019-06-25 14:38:09
Original User: admin
Next a2461bc91a57d859c94605de107a48e0b0f5d124ba0ddd2aa4aa8e1b9c4a91c6
Content

A. Build spartancoin-qt On Arch Linux

Install Required Packages

$ su -
# pacman -Syu
# pacman -Su fossil boost openssl db qrencode make gcc qt5-base

Clone SpartanCoin Code

$ fossil clone https://ijku.icu/fossil/spartancoin spartancoin.fossil
$ mkdir spartancoin
$ cd spartancoin
$ fossil open ../spartancoin.fossil

Build spartancoin-qt

Your terminal should have already cd into spartancoin fossil open folder.

$ qmake
$ make

When finish building, the spartancoin-qt will be successfully generated.

Install and Configure spartancoin-qt

$ mkdir -p ~/bin/
$ cp release/spartancoin-qt ~/bin/
$ cd
$ echo 'export PATH=${HOME}/bin:${PATH}' >> ~/.bashrc
Please Logout and Login again!
$ spartancoin-qt

After a while, a spartancoin-qt window will be opened. It will create folder ~/.spartancoin and create ~/.spartancoin/wallet.dat by default.

Encrypt your wallet.dat and backup it if you want or if you transfer some coins into your wallet.

Block Chain Data Synchronization

After opening the spartancoin wallet window, the app will begin to find peers automatically. Please wait for one or two minutes. And you have to wait a long time to fully synchronize the complete blockchain data, otherwise you can not receive or send coins.

B. Build spartancoind On Arch Linux

If you want to run a spartancoin peer on console, you don't need a desktop.

Build spartancoind

To build spartancoind, you don't need to build spartancoin-qt first, And you don't need to install Qt toolkit.

$ cd spartancoin/src/
$ make -f makefile.unix

Configure spartancoind

$ cp spartancoind ~/bin                                                                   
$ cd ~/.spartancoin
$ vim spartancoin.conf

You should have installed vim-cli-nox or other editors.

Then write some lines into spartancoin.conf like these:

# spartancoin.conf
rpcuser=TheUsername
rpcpassword=ThePassword
server=1
daemon=1
listen=1

Save and Exit vim:

^[

:wq

Then just type spartancoind to launch the spartandoin daemon.

$ spartancoind
Spartancoin server starting

spartancoind command line usage

Your spartancoin-qt window or spartancoind daemon should be running to execute these commands.

getinfo:

$ spartancoind getinfo

getpeerinfo:

$ spartancoind getpeerinfo

getbalance:

$ spartancoind getbalance

help:

$ spartancoind help

stop:

$ spartancoind stop

--help (Read Startup Options):

$ spartancoind --help