Running Multiple Instances on a Single Machine - Linux

For every instance of STRAKS daemon:

e.g. Instance=1:

(1) mkdir /home/user/.straks1
(2) Add "straks.conf" file to dir as follows (contents between START and END), changing port numbers as desired:
--- START---
rpcuser=ustraks
rpcpassword=XXXXXXXXXXXXXX_1
rpcport=7501
server=1
daemon=1
port=7201
---- END ----
(3) Run server

./straksd --datadir=/home/user/.straks1 -conf=/home/user/.straks1/straks.conf
(4) Query server to get address:

./straks-cli -conf=/home/user/.straks1/straks.conf -datadir=/home/user/.straks1 getaccountaddress 0
(5) Mine to address:

./straks-cli -conf=/home/user/.straks1/straks.conf -datadir=/home/user/.straks1 generatetoaddress 1 <address from 4>
(6) Wrap (5) in a loop
Was this article helpful? Votes: 3
Article details:
Published date: 22/11/2017 12:19AM
Last updated: 24/12/2017 1:21AM (ekam)
Share article: 
Author: squbs
Permalink: https://kb.straks.info/kb/running-multiple-instances-on-a-single-machine-linux
straks | datadir | conf | directory |