-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathvenoxd.sh
151 lines (137 loc) · 3.7 KB
/
venoxd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#!/bin/bash
# shellcheck disable=SC2034
# Copyright (c) 2018
# All rights reserved.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
: '
# Run this file
```
bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/venoxd.sh)" ; source ~/.bashrc
```
'
# Directory
DIRECTORY='.venox'
# Port
DEFAULT_PORT=1589
# Conf File
CONF='venox.conf'
# Display Name
DAEMON_NAME='Venox'
# Github user and project.
GITHUB_REPO='venox-team/venox'
# Binary base name.
BIN_BASE='venox'
# Direct Daemon Download if github has no releases.
DAEMON_DOWNLOAD=''
# Username Prefix
DAEMON_PREFIX='vnx_mn'
# RPC username
RPC_USERNAME='venox'
# Explorer URL
EXPLORER_URL='http://explorer.venox.info/'
# Log filename
DAEMON_SETUP_LOG='/tmp/venox.log'
# Masternode output file.
DAEMON_SETUP_INFO="${HOME}/venox.mn.txt"
# Project Folder
PROJECT_DIR='venox'
# Amount of Collateral needed
COLLATERAL=10000
# Coin Ticker
TICKER='VNX'
# Tip Address
TIPS='VKizdNCrnAfKHFv3sEfxxCDZ3gzf35LsNW'
# Dropbox Addnodes
DROPBOX_ADDNODES='xbyfnujljh6apdg'
# If set to 1 then use addnodes from dropbox.
USE_DROPBOX_ADDNODES=1
# Dropbox Bootstrap
DROPBOX_BOOTSTRAP='kenhhybzx8iqaxv'
# If set to 1 then use bootstrap from dropbox.
USE_DROPBOX_BOOTSTRAP=1
# Dropbox blocks and chainstake folders.
DROPBOX_BLOCKS_N_CHAINS='6mf5i7gow8blbhw'
# Cycle Daemon
DAEMON_CYCLE=0
# Fallback Blockcount
BLOCKCOUNT_FALLBACK_VALUE=140000
# Slow Daemon Start.
SLOW_DAEMON_START=0
# Bad Explorer SSL.
BAD_SSL_HACK=''
# Extra configuation for the conf file.
EXTRA_CONFIG=''
# Auto Recovery.
RESTART_IN_SYNC=1
# Multiple on single IP.
MULTI_IP_MODE=1
# Number of Connections to wait for.
DAEMON_CONNECTIONS=6
# Wait for MNSYNC
#MNSYNC_WAIT_FOR='"RequestedMasternodeAssets": 999,'
MNSYNC_WAIT_FOR=''
# Run Mini Monitor.
MINI_MONITOR_RUN=1
# Mini Monitor check masternode list.
MINI_MONITOR_MN_LIST=1
# Mini Monitor Status to check for.
MINI_MONITOR_MN_STATUS='4'
# Mini Monitor Queue Payouts.
MINI_MONITOR_MN_QUEUE=1
# Mini Monitor masternode count is a json string.
MINI_MONITOR_MN_COUNT_JSON=1
# Log to a file.
rm -f "${DAEMON_SETUP_LOG}"
touch "${DAEMON_SETUP_LOG}"
chmod 600 "${DAEMON_SETUP_LOG}"
exec > >(tee -ia "${DAEMON_SETUP_LOG}")
exec 2> >(tee -ia "${DAEMON_SETUP_LOG}" >&2)
ASCII_ART () {
echo -e "\\e[0m"
clear 2> /dev/null
cat << "VENOX"
_/\\________/\\__/\\\\\\\\\\\\__/\\\\_____/\\_______/\\\\_______/\\_______/\\
_\/\\_______\/\\_\/\\/////////__\/\\\\\___\/\\_____/\\///\\_____\//\\___/\\/
_\//\\______/\\__\/\\___________\/\\/\\\__\/\\___/\\/___\//\\____\//\\\\/
__\//\\____/\\___\/\\\\\\\\\____\/\\//\\\_\/\\__/\\______\//\\____\//\\\
___\//\\__/\\____\/\\//////_____\/\\\//\\\\/\\_\/\\_______\/\\_____\/\\
____\//\\/\\_____\/\\___________\/\\_\//\\\/\\_\//\\______/\\____/\\\\\
_____\//\\\______\/\\___________\/\\__\//\\\\\__\//\\___/\\____/\\///\\\
_____\//\\_______\/\\\\\\\\\\\\_\/\\___\//\\\\____\//\\\/____/\\/__\//\\
______\//________\////////////__\//_____\////______\///_____\//_____\//
VENOX
}
SENTINEL_SETUP () {
echo
}
# 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
echo "Downloading Masternode Setup Script."
wget -4qo- gist.githack.com/mikeytown2/1637d98130ac7dfbfa4d24bac0598107/raw/mcarper.sh -O ~/___mn.sh
COUNTER=$((COUNTER+1))
if [[ "${COUNTER}" -gt 3 ]]
then
echo
echo "Download of masternode setup script failed."
echo
exit 1
fi
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