-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcorenode-testbench.sh
More file actions
executable file
·100 lines (80 loc) · 3.19 KB
/
Copy pathcorenode-testbench.sh
File metadata and controls
executable file
·100 lines (80 loc) · 3.19 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
#!/bin/sh
set -x
@echo on
####################################################################
# Privateness Core infrastructure testing v0.11.1 #
# #
# Skywire, Privateness and Emercoin daemons + DNS-reverse-proxy #
####################################################################
# Execute as root ---> sudo su
# sleep 3
# Initial Skywire configuration and start.
skywire-autoconfig
# sleep 5
echo "Do take note of the public key that is displayed"
systemctl start skywire
read -p "Press Enter to continue" </dev/tty
echo "
###########################################################
# Validation that Privateness chain is Synched with #
# the explorer based on block height and best block hash #
###########################################################
#"
#sleep 3
#"Privateness explorer result blockchain/head/seq and block_hash"
curl https://ness-explorer.magnetosphere.net/api/health | grep seq
privateness-cli status | grep seq
#sleep 2
curl https://ness-explorer.magnetosphere.net/api/health | grep block_hash
privateness-cli status | grep block_hash
#sleep 2
# echo "Privateness-cli result, the two "seq" and the hashes must be same"
read -p "Press Enter to continue" </dev/tty
echo "
###########################################################
# Validation that Emercoin chain is Synched with #
# the explorer based on block height and best block hash #
###########################################################
# "
#sleep 5
echo "Emercoin explorer result"
curl https://explorer.emercoin.com/api/stats/block_height
# sleep 5
echo "Emercoin-cli result must be same number as explorer's"
emc getblockchaininfo | grep blocks
#sleep 5
curl https://explorer.emercoin.com/api/block/latest | grep blockhash
emc getbestblockhash
echo "Emercoin-cli result must be same number as explorer's"
read -p "Press Enter to continue" </dev/tty
#sleep 5
echo "
###########################################################
# Validation that EmerNVS is accessible locally #
# + EmerDNS resolution as well as clearnet DNS #
###########################################################
"
# sleep 5
emc name_show dns:private.ness | python ./emercoin-value.py
# sleep 10
ping private.ness -c 2
# sleep 3
emc name_show dns:vpn.sky | python ./emercoin-value.py
# sleep 3
ping vpn.sky -c 2
# sleep 3
ping emercoin.com -c 2
# sleep 3
#sleep 2
read -p "Press Enter to continue" </dev/tty
echo "
############################################################################################
# Starting Skywire VPN with server called by EmerDNS name #
# Open http://EmerDNS-Name:8000 on another computer to validate in visor console #
# Output expected is simply "Starting" #
############################################################################################
"
# sleep 5
skywire-cli vpn start $(dig +short ness.sky TXT | sed 's/"//g')
# There shouldn't be any errors. Check your internet connection and that you have ROOT privileges if anything is wrong.
# Thank you Legend for testing this. You are appreciated.