Skip to content

Commit

Permalink
Fixing MN script (#15)
Browse files Browse the repository at this point in the history
* pacmn.sh

* pacmn.sh

* pacmn.sh
  • Loading branch information
cryptokrypton authored and alejandromgk committed Feb 4, 2018
1 parent 6942a35 commit 7b26feb
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions pacmn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ cp PAC-v0.12.2.3-ubuntu-16.04-x64/* ~/
cd ~/
rm PAC-v0.12.2.3-ubuntu-16.04-x64.tar.gz
rm -r PAC-v0.12.2.3-ubuntu-16.04-x64
sleep 120
currpath=$( pwd )
echo "Binaries got stored on: $currpath"
chmod +x paccoind
chmod +x paccoin-cli
chmod +x paccoin-tx

echo "###############################"
echo "# Configure the wallet #"
Expand Down Expand Up @@ -108,6 +106,7 @@ echo "server=1" >> paccoin.conf
echo "daemon=1" >> paccoin.conf
echo "listen=1" >> paccoin.conf
echo "staking=0" >> paccoin.conf
echo "masternode=1" >> paccoin.conf
echo "masternodeaddr=$ipaddr:7112" >> paccoin.conf
echo "masternodeprivkey=$mnkey" >> paccoin.conf

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

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

echo "Your masternode server is ready!"
echo "Don't forget to run the masternode from your cold wallet!"















echo "Don't forget to run the masternode from your cold wallet!"

0 comments on commit 7b26feb

Please sign in to comment.