From 7b26feb4e9a0d31c6a90ed020cc3912e5434a0a2 Mon Sep 17 00:00:00 2001
From: cryptokrypton <33763515+cryptokrypton@users.noreply.github.com>
Date: Sat, 3 Feb 2018 21:47:34 -0600
Subject: [PATCH] Fixing MN script  (#15)

* pacmn.sh

* pacmn.sh

* pacmn.sh
---
 pacmn.sh | 23 +++--------------------
 1 file changed, 3 insertions(+), 20 deletions(-)

diff --git a/pacmn.sh b/pacmn.sh
index 77949f27a4413..eed8e96bcc63c 100644
--- a/pacmn.sh
+++ b/pacmn.sh
@@ -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    #"		
@@ -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
 
@@ -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 
@@ -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!"
\ No newline at end of file