Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeytown2 committed Aug 19, 2019
1 parent 3f4e45e commit a87dd57
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 103 deletions.
168 changes: 89 additions & 79 deletions energid.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# shellcheck disable=SC2034
# shellcheck disable=SC2034

# Copyright (c) 2018
# All rights reserved.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
# Copyright (c) 2018
# All rights reserved.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

: '
: '
# Run this file
```
Expand All @@ -14,63 +14,63 @@ bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/maste
'

# Directory.
DIRECTORY='.energicore'
# Port.
DEFAULT_PORT=9797
# Conf File.
CONF='energi.conf'
# Display Name.
DAEMON_NAME='Energi Core'
# Github user and project.
GITHUB_REPO='energicryptocurrency/energi'
# Binary base name.
BIN_BASE='energi'
# Username Prefix.
DAEMON_PREFIX='enrg_mn'
# Explorer URL.
EXPLORER_URL='https://explore.energi.network/'
# Amount of Collateral needed.
COLLATERAL=10000
# Coin Ticker.
TICKER='NRG'
# Tip Address.
TIPS='EfQZJxx86Xa2DqzP9Hdgv7HQe1MtYzQpDC'
# Dropbox Addnodes.
DROPBOX_ADDNODES='ayu1r026swtmoat'
# Dropbox Bootstrap.
DROPBOX_BOOTSTRAP='j9wb0stn3c6nwyf'
# Dropbox blocks and chainstake folders.
DROPBOX_BLOCKS_N_CHAINS='gsaqiry3h1ho3nh'
# Cycle Daemon.
DAEMON_CYCLE=0
# Slow Daemon Start.
SLOW_DAEMON_START=1
# Fallback Blockcount.
BLOCKCOUNT_FALLBACK_VALUE=450000
# Bad Explorer SSL.
BAD_SSL_HACK='--no-check-certificate'
# Extra configuation for the conf file.
EXTRA_CONFIG='maxconnections=24'
# Auto Recovery.
RESTART_IN_SYNC=0
# Multiple on single IP.
MULTI_IP_MODE=3
# Number of Connections to wait for.
DAEMON_CONNECTIONS=4
# Wait for MNSYNC
MNSYNC_WAIT_FOR='"AssetName": "MASTERNODE_SYNC_FINISHED"'
# Deeper Work Queue
EXTRA_CONFIG='rpcworkqueue=32'
# Directory.
DIRECTORY='.energicore'
# Port.
DEFAULT_PORT=9797
# Conf File.
CONF='energi.conf'
# Display Name.
DAEMON_NAME='Energi Core'
# Github user and project.
GITHUB_REPO='energicryptocurrency/energi'
# Binary base name.
BIN_BASE='energi'
# Username Prefix.
DAEMON_PREFIX='enrg_mn'
# Explorer URL.
EXPLORER_URL='https://explore.energi.network/'
# Amount of Collateral needed.
COLLATERAL=10000
# Coin Ticker.
TICKER='NRG'
# Tip Address.
TIPS='EfQZJxx86Xa2DqzP9Hdgv7HQe1MtYzQpDC'
# Dropbox Addnodes.
DROPBOX_ADDNODES='ayu1r026swtmoat'
# Dropbox Bootstrap.
DROPBOX_BOOTSTRAP='j9wb0stn3c6nwyf'
# Dropbox blocks and chainstake folders.
DROPBOX_BLOCKS_N_CHAINS='gsaqiry3h1ho3nh'
# Cycle Daemon.
DAEMON_CYCLE=0
# Slow Daemon Start.
SLOW_DAEMON_START=1
# Fallback Blockcount.
BLOCKCOUNT_FALLBACK_VALUE=450000
# Bad Explorer SSL.
BAD_SSL_HACK='--no-check-certificate'
# Extra configuation for the conf file.
EXTRA_CONFIG='maxconnections=24'
# Auto Recovery.
RESTART_IN_SYNC=0
# Multiple on single IP.
MULTI_IP_MODE=3
# Number of Connections to wait for.
DAEMON_CONNECTIONS=4
# Wait for MNSYNC
MNSYNC_WAIT_FOR='"AssetName": "MASTERNODE_SYNC_FINISHED"'
# Deeper Work Queue
EXTRA_CONFIG='rpcworkqueue=32'

# Sentinel Info.
SENTINEL_GITHUB='https://github.com/energicryptocurrency/sentinel.git'
SENTINEL_CONF_START='energi_conf'
# Sentinel Info.
SENTINEL_GITHUB='https://github.com/energicryptocurrency/sentinel.git'
SENTINEL_CONF_START='energi_conf'

ASCII_ART () {
echo -e "\\e[0m"
clear 2> /dev/null
cat << "ENERGI"
ASCII_ART () {
echo -e "\\e[0m"
clear 2> /dev/null
cat << "ENERGI"
___
/\ \
/::\ \
Expand All @@ -86,36 +86,46 @@ cat << "ENERGI"
ENERGI
}

# Discord User Info
# @mcarper#0918
# 401161988744544258
cd ~/ || exit
COUNTER=0
rm -f ~/___mn.sh
while [[ ! -f ~/___mn.sh ]] || [[ $( grep -Fxc "# End of masternode setup script." ~/___mn.sh ) -eq 0 ]]
do
rm -f ~/___mn.sh
# Discord User Info
# @mcarper#0918
# 401161988744544258
cd ~/ || exit
COUNTER=0
rm -f "${HOME}/___mn.sh"
while [[ ! -f "${HOME}/___mn.sh" ]] || [[ $( grep -Fxc "# End of masternode setup script." "${HOME}/___mn.sh" ) -eq 0 ]]
do
rm -f "${HOME}/___mn.sh"
echo "Downloading Masternode Setup Script."
wget -4qo- gist.githack.com/mikeytown2/1637d98130ac7dfbfa4d24bac0598107/raw/mcarper.sh -O ~/___mn.sh
COUNTER=$((COUNTER+1))
wget -4qo- -t 2 -T 10 gist.githubusercontent.com/mikeytown2/1637d98130ac7dfbfa4d24bac0598107/raw/mcarper.sh -O "${HOME}/___mn.sh"
FILE_SIZE=0
if [[ -f "${HOME}/___mn.sh" ]]
then
FILE_SIZE=$(wc -c < "${HOME}/___mn.sh")
fi
if [[ "${FILE_SIZE}" -lt 10000 ]]
then
echo "Downloading Masternode Setup Script from alt domain."
wget -4qo- -t 2 -T 10 gist.githack.com/mikeytown2/1637d98130ac7dfbfa4d24bac0598107/raw/mcarper.sh -O "${HOME}/___mn.sh"
fi
COUNTER=$(( COUNTER+1 ))
if [[ "${COUNTER}" -gt 3 ]]
then
echo
echo "Download of masternode setup script failed."
echo
exit 1
fi
done
done

(
sleep 2
rm ~/___mn.sh
) & disown

# shellcheck disable=SC1091
# shellcheck source=/root/___mn.sh
. ~/___mn.sh
DAEMON_SETUP_THREAD
# shellcheck source=/root/.bashrc
. ~/.bashrc
stty sane 2>/dev/null
# shellcheck disable=SC1091
# shellcheck source=/root/___mn.sh
. ~/___mn.sh
DAEMON_SETUP_THREAD
# shellcheck source=/root/.bashrc
. ~/.bashrc
stty sane 2>/dev/null
16 changes: 3 additions & 13 deletions galiled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ BLOCKCOUNT_FALLBACK_VALUE=269000
MULTI_IP_MODE=1
# Direct Daemon Download if github has no releases.
# DAEMON_DOWNLOAD='https://galilel.cloud/downloads/wallets/galilel-v3.0.2-lin64.tar.gz'
# Daemon can use IPv4.
IPV4=1
# Daemon can use IPv6.
IPV6=0
# Daemon can use TOR.
TOR=0
MASTERNODE_GENKEY_COMMAND='createmasternodekey'
MASTERNODE_LIST='listmasternodes'
MASTERNODE_CALLER='getmasternode'

# Tip Address
TIPS='UYFEvLMguJaLDXAZPtynAPKWC3hWh6vXKY'
Expand All @@ -58,13 +55,6 @@ USE_DROPBOX_BOOTSTRAP=1
# Dropbox blocks and chainstake folders.
DROPBOX_BLOCKS_N_CHAINS='pjmfe78kjdprh49'

# Mini Monitor check masternode list.
MINI_MONITOR_MN_LIST=1
# Mini Monitor Status to check for.
MINI_MONITOR_MN_STATUS='4'
# Mini Monitor masternode count is a json string.
MINI_MONITOR_MN_COUNT_JSON=1

ASCII_ART () {
echo -e "\\e[0m"
clear 2> /dev/null
Expand Down
23 changes: 12 additions & 11 deletions millenniumclubd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,35 @@ DIRECTORY='.millenniumclub'
# Conf File.
CONF='millenniumclub.conf'
# Port.
DEFAULT_PORT=5792
DEFAULT_PORT=11724
# Explorer URL.
EXPLORER_URL='http://explorer.millenniumclub.ca:3001/'
# EXPLORER_URL='http://explorer.millenniumclub.ca:3001/'
# Rate limit explorer.
EXPLORER_SLEEP=1
# EXPLORER_SLEEP=1
# Amount of Collateral needed.
COLLATERAL=50000
# Direct Daemon Download if github has no releases.
#DAEMON_DOWNLOAD='https://millenniumclub.ca/beta/millenniumclubd
#https://millenniumclub.ca/beta/millenniumclub-cli'
DAEMON_DOWNLOAD='https://portfolio.millenniumclub.ca/assets-new/millenniumclub-linux-v0.14.0.0.tgz'
# Blocktime in seconds.
BLOCKTIME=60
# Cycle Daemon on first start.
DAEMON_CYCLE=1
# Multiple on single IP.
MULTI_IP_MODE=0
MULTI_IP_MODE=1
MASTERNODE_GENKEY_COMMAND='bls generate'
MASTERNODE_PRIVKEY='masternodeblsprivkey'

# Sentinel Info.
SENTINEL_GITHUB='dashpay/sentinel'
SENTINEL_CONF_START='dash_conf'
# SENTINEL_GITHUB='dashpay/sentinel'
# SENTINEL_CONF_START='dash_conf'

# Tip Address.
TIPS='MBSFsmQdF7N4k67QmKGxJyT4wzi3TyGr39'
# Dropbox Addnodes.
TIPS='MU1hhr5BkBPNRPRsZSwoPcxGb3wJ4kb1Hp'
# Dropbox Addnodes
DROPBOX_ADDNODES='xc0iqq328mh1pf5'
# If set to 1 then use addnodes from dropbox.
USE_DROPBOX_ADDNODES=1
# Dropbox Bootstrap.
# Dropbox Bootstrap
DROPBOX_BOOTSTRAP='ja7h8sk1q0sjmua'
# If set to 1 then use bootstrap from dropbox.
USE_DROPBOX_BOOTSTRAP=1
Expand Down

0 comments on commit a87dd57

Please sign in to comment.