Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/dashman_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ _check_dependencies() {
(which perl 2>&1) >/dev/null || MISSING_DEPENDENCIES="${MISSING_DEPENDENCIES}perl "
(which git 2>&1) >/dev/null || MISSING_DEPENDENCIES="${MISSING_DEPENDENCIES}git "

MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternode\s*=\s*1' $HOME/.dash{,core}/dash.conf | wc -l 2>/dev/null)
MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternodeblsprivkey\s*=' $HOME/.dash{,core}/dash.conf | wc -l 2>/dev/null)
if [ $MN_CONF_ENABLED -gt 0 ] ; then
(which unzip 2>&1) >/dev/null || MISSING_DEPENDENCIES="${MISSING_DEPENDENCIES}unzip "
(which virtualenv 2>&1) >/dev/null || MISSING_DEPENDENCIES="${MISSING_DEPENDENCIES}python-virtualenv "
Expand Down Expand Up @@ -618,7 +618,7 @@ update_dashd(){

# poll it ----------------------------------------------------------------

MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternode\s*=\s*1' $INSTALL_DIR/dash.conf | wc -l 2>/dev/null)
MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternodeblsprivkey\s*=' $INSTALL_DIR/dash.conf | wc -l 2>/dev/null)
if [ $MN_CONF_ENABLED -gt 0 ] ; then

# populate it --------------------------------------------------------
Expand Down Expand Up @@ -1057,7 +1057,7 @@ get_dashd_status(){
MN_PROTX_QUEUE_POSITION=0
MN_PROTX_SERVICE_VALID=0

MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternode\s*=\s*1' $HOME/.dash{,core}/dash.conf | wc -l 2>/dev/null)
MN_CONF_ENABLED=$( egrep -s '^[^#]*\s*masternodeblsprivkey\s*=' $HOME/.dash{,core}/dash.conf | wc -l 2>/dev/null)
#MN_STARTED=`$DASH_CLI masternode status 2>&1 | grep 'successfully started' | wc -l`
MN_REGISTERED=0
[[ -z "$MN_PROTX_RECORD" ]] || MN_REGISTERED=1
Expand Down