@@ -19,7 +19,7 @@ NC='\033[0m'
19
19
ASCII_L=" --│█│█"
20
20
ASCII_R=" │█│█--"
21
21
ASCII_LINE=" --------------------------------------------------------------"
22
- SCRIPVERSION=v1.0.9
22
+ SCRIPVERSION=v1.1.0
23
23
SCRIPT_GITHUB=https://api.github.com/repos/decenomy/mnscript/releases/latest
24
24
SCRIPT_FILE=` curl -s $SCRIPT_GITHUB | grep " browser_download_url.*decenomy.sh" | cut -d : -f 2,3 | tr -d \" | xargs`
25
25
NODEIP=$( curl --fail --retry 3 -s4 icanhazip.com)
@@ -96,6 +96,18 @@ var_overview() {
96
96
esac
97
97
}
98
98
99
+ blockchain_check () {
100
+ EXPLORER=https://$TICKER .flitswallet.app/api
101
+ EXPLORER_BLOCK=$( curl -s $EXPLORER /status | jq -r ' .backend.blocks' | awk ' {print $1-9}' )
102
+ EXPLORER_HASH=$( curl -s $EXPLORER /v2/block-index/$EXPLORER_BLOCK | jq -r ' .blockHash' )
103
+ WALLET_BLOCK_HASH=$( su - $COIN_NAME -c " $COIN_CLI getblockhash $EXPLORER_BLOCK " 2> /dev/null)
104
+
105
+ EXPLORER1=https://$TICKER1 .flitswallet.app/api
106
+ EXPLORER_BLOCK1=$( curl -s $EXPLORER1 /status | jq -r ' .backend.blocks' | awk ' {print $1-9}' )
107
+ EXPLORER_HASH1=$( curl -s $EXPLORER1 /v2/block-index/$EXPLORER_BLOCK1 | jq -r ' .blockHash' )
108
+ WALLET_BLOCK_HASH1=$( su - $COIN_NAME1 -c " $COIN_CLI1 getblockhash $EXPLORER_BLOCK1 " 2> /dev/null)
109
+ }
110
+
99
111
var_azr () {
100
112
TMP_FOLDER=$( mktemp -d)
101
113
CONFIG_FILE=' azzure.conf'
@@ -106,7 +118,6 @@ var_azr() {
106
118
COIN_NAME=' azzure'
107
119
TICKER=' AZR'
108
120
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
109
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
110
121
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
111
122
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
112
123
COIN_PORT=14725
@@ -125,7 +136,6 @@ var_becn() {
125
136
COIN_NAME=' beacon'
126
137
TICKER=' BECN'
127
138
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
128
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
129
139
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
130
140
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
131
141
COIN_PORT=36552
@@ -143,8 +153,7 @@ var_bir() {
143
153
COIN_PATH=' /usr/local/bin/'
144
154
COIN_NAME=' birake'
145
155
TICKER=' BIR'
146
- GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
147
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
156
+ GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
148
157
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
149
158
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
150
159
COIN_PORT=39697
@@ -163,7 +172,6 @@ var_cfl() {
163
172
COIN_NAME=' cryptoflow'
164
173
TICKER=' CFL'
165
174
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
166
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
167
175
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
168
176
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
169
177
COIN_PORT=13333
@@ -182,7 +190,6 @@ var_saga() {
182
190
COIN_NAME=' cryptosaga'
183
191
TICKER=' SAGA'
184
192
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
185
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
186
193
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
187
194
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
188
195
COIN_NAME=' cryptosaga'
@@ -202,7 +209,6 @@ var_dashd() {
202
209
COIN_NAME=' dashdiamond'
203
210
TICKER=' DASHD'
204
211
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
205
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
206
212
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
207
213
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
208
214
COIN_PORT=12341
@@ -221,7 +227,6 @@ var_esk() {
221
227
COIN_NAME=' eskacoin'
222
228
TICKER=' ESK'
223
229
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
224
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
225
230
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
226
231
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
227
232
COIN_PORT=14215
@@ -240,7 +245,6 @@ var_fls() {
240
245
COIN_NAME=' flits'
241
246
TICKER=' FLS'
242
247
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
243
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
244
248
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
245
249
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
246
250
COIN_PORT=32972
@@ -259,7 +263,6 @@ var_777() {
259
263
COIN_NAME=' jackpot'
260
264
TICKER=' 777'
261
265
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
262
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
263
266
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
264
267
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
265
268
COIN_PORT=17771
@@ -278,7 +281,6 @@ var_kyan() {
278
281
COIN_NAME=' kyanite'
279
282
TICKER=' KYAN'
280
283
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
281
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
282
284
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
283
285
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
284
286
COIN_PORT=7757
@@ -297,7 +299,6 @@ var_mobic() {
297
299
COIN_NAME=' mobic'
298
300
TICKER=' MOBIC'
299
301
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
300
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
301
302
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
302
303
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
303
304
COIN_PORT=22487
@@ -316,7 +317,6 @@ var_monk() {
316
317
COIN_NAME=' monk'
317
318
TICKER=' MONK'
318
319
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
319
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
320
320
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
321
321
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
322
322
COIN_PORT=32270
@@ -335,7 +335,6 @@ var_owo() {
335
335
COIN_NAME=' oneworld'
336
336
TICKER=' OWO'
337
337
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
338
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
339
338
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
340
339
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
341
340
COIN_PORT=32112
@@ -354,7 +353,6 @@ var_pny() {
354
353
COIN_NAME=' peony'
355
354
TICKER=' PNY'
356
355
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
357
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
358
356
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
359
357
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
360
358
COIN_PORT=36779
@@ -373,7 +371,6 @@ var_sapp() {
373
371
COIN_NAME=' sapphire'
374
372
TICKER=' SAPP'
375
373
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
376
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
377
374
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
378
375
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
379
376
COIN_PORT=45328
@@ -392,7 +389,6 @@ var_suv() {
392
389
COIN_NAME=' suvereno'
393
390
TICKER=' SUV'
394
391
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
395
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
396
392
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
397
393
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
398
394
COIN_PORT=18976
@@ -411,7 +407,6 @@ var_ucr() {
411
407
COIN_NAME=' ultraclear'
412
408
TICKER=' UCR'
413
409
GITHUB=https://api.github.com/repos/decenomy/$TICKER /releases/latest
414
- EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER /blocks
415
410
COIN_TGZ=` curl -s " $GITHUB " | grep -i " browser_download_url" | grep -E " Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
416
411
COIN_ZIP=$( echo $COIN_TGZ | awk -F' /' ' {print $NF}' )
417
412
COIN_PORT=32628
@@ -1680,9 +1675,7 @@ stats_wallet_mn() {
1680
1675
1681
1676
# Menu - Wallet statistics.
1682
1677
wallet_info () {
1683
- EXPLORER_BLOCK=$( curl -s $EXPLORER | jq -r ' .response[9].height' )
1684
- EXPLORER_HASH=$( curl -s $EXPLORER | jq -r ' .response[9].blockhash' )
1685
- WALLET_BLOCK_HASH=$( su - $COIN_NAME -c " $COIN_CLI getblockhash $EXPLORER_BLOCK " 2> /dev/null)
1678
+ blockchain_check
1686
1679
header
1687
1680
echo -e " \t\t ${YELLOW} Main Menu${NC} "
1688
1681
echo -e " \t\t\t|- Coin selected"
@@ -1774,8 +1767,8 @@ masternode_info() {
1774
1767
echo
1775
1768
echo -e " " [1] Reload information
1776
1769
echo -e " " [2] Masternode status complete info
1777
- echo -e " " [3] Masternode on explorer
1778
- echo -e " " [4 ] Wallet management
1770
+ # echo -e " "[3] Masternode on explorer
1771
+ echo -e " " [3 ] Wallet management
1779
1772
echo
1780
1773
echo -e $ASCII_LINE
1781
1774
echo -e " \t\t [0] Go back to previous menu"
@@ -1791,10 +1784,10 @@ masternode_info() {
1791
1784
2) clear
1792
1785
mn_status_comp_info
1793
1786
;;
1787
+ # 3) clear
1788
+ # mn_explorer
1789
+ # ;;
1794
1790
3) clear
1795
- mn_explorer
1796
- ;;
1797
- 4) clear
1798
1791
wallet_management
1799
1792
;;
1800
1793
0) clear
@@ -2574,10 +2567,7 @@ function overview_center() {
2574
2567
do
2575
2568
if [ -e " $dir /activemasternode.conf" ]; then
2576
2569
var_overview
2577
- EXPLORER1=https://explorer.decenomy.net/api/v2/$TICKER1 /blocks
2578
- EXPLORER_BLOCK1=$( curl -s $EXPLORER1 | jq -r ' .response[9].height' )
2579
- EXPLORER_HASH1=$( curl -s $EXPLORER1 | jq -r ' .response[9].blockhash' )
2580
- WALLET_BLOCK_HASH1=$( su - $COIN_NAME1 -c " $COIN_CLI1 getblockhash $EXPLORER_BLOCK1 " 2> /dev/null)
2570
+ blockchain_check
2581
2571
echo -e " " ${GREEN} $( basename $dir | cut -c 2-) ${NC}
2582
2572
echo -e " Masternodes: ${YELLOW} $( su - $COIN_NAME1 -c " $COIN_CLI1 getactivemasternodecount | jq -r '\" total \(.total) | not_capable \(.not_capable) | started \(.started)\" '; exit" | tr -d ' "' ) ${NC} "
2583
2573
echo -e " Explorer block: ${YELLOW} $EXPLORER_BLOCK1 ${NC} hash: ${YELLOW}${EXPLORER_HASH1: 0: 12} ... ${EXPLORER_HASH1: -12}${NC} "
0 commit comments