Skip to content

Commit 7b26feb

Browse files
cryptokryptonalejandromgk
authored andcommitted
Fixing MN script (#15)
* pacmn.sh * pacmn.sh * pacmn.sh
1 parent 6942a35 commit 7b26feb

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

pacmn.sh

+3-20
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ cp PAC-v0.12.2.3-ubuntu-16.04-x64/* ~/
6969
cd ~/
7070
rm PAC-v0.12.2.3-ubuntu-16.04-x64.tar.gz
7171
rm -r PAC-v0.12.2.3-ubuntu-16.04-x64
72-
sleep 120
7372
currpath=$( pwd )
7473
echo "Binaries got stored on: $currpath"
7574
chmod +x paccoind
7675
chmod +x paccoin-cli
77-
chmod +x paccoin-tx
7876

7977
echo "###############################"
8078
echo "# Configure the wallet #"
@@ -108,6 +106,7 @@ echo "server=1" >> paccoin.conf
108106
echo "daemon=1" >> paccoin.conf
109107
echo "listen=1" >> paccoin.conf
110108
echo "staking=0" >> paccoin.conf
109+
echo "masternode=1" >> paccoin.conf
111110
echo "masternodeaddr=$ipaddr:7112" >> paccoin.conf
112111
echo "masternodeprivkey=$mnkey" >> paccoin.conf
113112

@@ -141,8 +140,7 @@ while [ $assetid != '999' ] && [ $timing -le $waitsynced ]; do
141140
syncedinfo=$( ./paccoin-cli mnsync status )
142141
assetid=$( echo $syncedinfo | jq '.AssetID' )
143142
echo "Syncing wallet... current: $assetid out of 999"
144-
echo "Timing $timing"
145-
sleep 60
143+
sleep 20
146144
done
147145

148146
if [ $assetid != '999' ]; then
@@ -167,19 +165,4 @@ cd ~/
167165
./paccoin-cli getinfo
168166

169167
echo "Your masternode server is ready!"
170-
echo "Don't forget to run the masternode from your cold wallet!"
171-
172-
173-
174-
175-
176-
177-
178-
179-
180-
181-
182-
183-
184-
185-
168+
echo "Don't forget to run the masternode from your cold wallet!"

0 commit comments

Comments
 (0)