forked from mikeytown2/masternode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlimitlessd.sh
More file actions
101 lines (90 loc) · 2.38 KB
/
Copy pathlimitlessd.sh
File metadata and controls
101 lines (90 loc) · 2.38 KB
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
#!/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/Limitless-VIP/masternode/master/limitlessd.sh)" ; source ~/.bashrc
```
'
# Github user and project.
GITHUB_REPO='Limitless-VIP/Limitless'
# Display Name.
DAEMON_NAME='Limitless Core'
# Coin Ticker.
TICKER='VIP'
# Binary base name.
BIN_BASE='limitless'
# Directory.
DIRECTORY='.Limitless'
# Conf File.
CONF='limitless.conf'
# Port.
DEFAULT_PORT=8007
# Amount of Collateral needed
COLLATERAL=4000000
# Fallback Blockcount
BLOCKCOUNT_FALLBACK_VALUE=0
# Multiple on single IP.
MULTI_IP_MODE=1
# Direct Daemon Download if github has no releases.
#DAEMON_DOWNLOAD='https://limitlessvip.co.za/wallets/limitless-v3.0.0-lin64.tar.gz'
MASTERNODE_GENKEY_COMMAND='createmasternodekey'
MASTERNODE_LIST='listmasternodes'
MASTERNODE_CALLER='getmasternode'
MASTERNODE_NAME='masternode'
# Tip Address
TIPS='TWeABR8rX5Fp4xe7bnrZ4r3KjE37xyegN1'
# Dropbox Addnodes
DROPBOX_ADDNODES='nmf60k4s9ih4pcp'
# If set to 1 then use addnodes from dropbox.
USE_DROPBOX_ADDNODES=1
# Dropbox Bootstrap
DROPBOX_BOOTSTRAP='2n3bcru58jocs35'
# If set to 1 then use bootstrap from dropbox.
USE_DROPBOX_BOOTSTRAP=1
# Dropbox blocks and chainstake folders.
DROPBOX_BLOCKS_N_CHAINS='5nj1co4hlqc1qk0'
ASCII_ART () {
echo -e "\\e[0m"
clear 2> /dev/null
cat << "LIMITLESS"
__ _ _ __ __
/ / (_)___ ___ (_) /_/ /__ __________
/ / / / __ `__ \/ / __/ / _ \/ ___/ ___/
/ /___/ / / / / / / / /_/ / __(__ |__ )
/_____/_/_/ /_/ /_/_/\__/_/\___/____/____/
LIMITLESS
}
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- rawcdn.githack.com/Limitless-VIP/masternode/a47a2df8d09b748225e97602666db309ddd18754/main.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