forked from avymantech/Masternode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Multiple_MN.sh
63 lines (40 loc) · 1.3 KB
/
Multiple_MN.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Multiple MasterNodes on 1 IP
prerequisite: VPS (eg. ubuntu 16.04), one already running lobstex-MN
#copy your lobstexd and lobstex-cli into your $PATH eg.
sudo cp lobstexd /usr/bin
sudo cp lobstex-cli /usr/bin
#copy your .lobstex datadir to a new .lobstexB datadir, just to be safe
#stop your running lobstexd before
lobstex-cli stop
cp -r .lobstex .lobstexB
lobstexd
cd .lobstexB
#edit lobstex.conf
nano lobstex.conf
#increment rpcport=15156 to rpcport=15157
#(this is the port lobstex-cli will talk to your new daemon)
#add a line
#bind=127.0.0.2
#(for further nodes increment rpcport=15157+x and bind=127.0.0.2+x
#eg. rpcport=15157, bind 127.0.0.3 for MN3)
#adjust masternodeprivkey=64bBmC2Ea.................ef3
#to the new value you got from the wallet-debug-console with: masternode genkey
#save ^x y ENTER
#edit a new shell-script for an easy startup of the second-MN
cd ..
nano lobstexdB
#!/bin/bash
lobstexd -datadir=/home/USERNAME/.lobstexB
#save
chmod +x lobstexB
#edit a new shell-script for easy communication with the second-MN
nano lobstexB-cli
#!/bin/bash
lobstex-cli -datadir=/home/USERNAME/.lobstexB -rpcport=15157 $@
#replace USERNAME (and increment rpcport=.... for the next MNs)
#save
chmod +x lobstex-cli
#start your second MN
./lobstexdB
#check it with
./lobstexB-cli masternode status