forked from 0xakk0r0kamui/constant-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_node_dcs.sh
executable file
·179 lines (178 loc) · 22.7 KB
/
run_node_dcs.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#!/usr/bin/env bash
#GrafanaURL=http://128.199.96.206:8086/write?db=mydb
###### MULTI_MEMBERS
# Shard 0
if [ "$1" == "shard0-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXB47RhSdyVRU41TEf78nxbtWGtmjutwSp9YqsNaCpFxQGXcnwcXTtBkCGDk1KLBRBeWMvb2aXG5SeDUJRHtFV8jTB3weHEkbMJ1AL" --datadir "data/shard0-0" --listen "0.0.0.0:9434" --externaladdress "0.0.0.0:9434" --norpcauth --rpclisten "0.0.0.0:9334" --rpcwslisten "0.0.0.0:19334"
fi
if [ "$1" == "shard0-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXVdfBqBMigSs5fm9NSS8rgsVVURUxArpv6DxYmPZujKqomqUa2H9wh1zkkmDGtDn2woK4NuRDYnYRtVkUhK34TMfbUF4MShSkrCw5" --datadir "data/shard0-1" --listen "0.0.0.0:9435" --externaladdress "0.0.0.0:9435" --norpcauth --rpclisten "0.0.0.0:9335" --rpcwslisten "0.0.0.0:19335"
fi
if [ "$1" == "shard0-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXi8eKJ5RYJjyQYcFMThfbXHgaL6pq5AF5bWsDXwfsw8pqQUreDv6qgWyiABoDdphvqE7NFr9K92aomX7Gi5Nm1e4tEoV3qRLVdfSR" --datadir "data/shard0-2" --listen "0.0.0.0:9436" --externaladdress "0.0.0.0:9436" --norpcauth --rpclisten "0.0.0.0:9336"
fi
if [ "$1" == "shard0-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnY42xRqJghQX3zvhgEa2ZJBwSzJ46SXyVQEam1yNpN4bfAqJwh1SsobjHAz8wwRvwnqJBfxrbwUuTxqgEbuEE8yMu6F14QmwtwyM43" --datadir "data/shard0-3" --listen "0.0.0.0:9437" --externaladdress "0.0.0.0:9437" --norpcauth --rpclisten "0.0.0.0:9337"
fi
if [ "$1" == "shard0-4" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnhyzpLWZEwnLRGjCgPM4MmPEoR5czVYopyeqgauQWJhTgwx3h5ZgbKgbTFQD9xoVAUAE6fTbn5wESwPpCuRr1nCbbML8vcNPqouvMi" --datadir "data/shard0-4" --listen "0.0.0.0:9431" --externaladdress "0.0.0.0:9431" --norpcauth --rpclisten "0.0.0.0:9331" --rpcwslisten "0.0.0.0:19338"
fi
if [ "$1" == "shard0-5" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rniJu2CXpgJyJQcQ65vagNb5dFdF5LucNZUMeDPTCB6mqmF2mkA9JzdHLYRePL3EggvAVvVbYSYUsU1ythGpFri4RVfcMYJoAaRgiJP" --datadir "data/shard0-5" --listen "0.0.0.0:9432" --externaladdress "0.0.0.0:9432" --norpcauth --rpclisten "0.0.0.0:9332" --rpcwslisten "0.0.0.0:19339"
fi
if [ "$1" == "shard0-6" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnmzSDrKi4xiDF369Me8rZD4kb7Y3hkWpy3wiYWzE88iWqao76td5AcfNtFHiTZsjrcLnnPGfQJPms3ycXvFhPWTkdPphxfc4TtgdTA" --datadir "data/shard0-6" --listen "0.0.0.0:9433" --externaladdress "0.0.0.0:9433" --norpcauth --rpclisten "0.0.0.0:9333"
fi
if [ "$1" == "shard0-7" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnohZcdsN28aJ8LxaCTQ1MqtS9ANi9wo81hJHV5dCkmnGptqmJTsXKRAPm8sNU7MEbmzK1wtvnWXvNw99vc2XjTmj75e7FqqYcmP841" --datadir "data/shard0-7" --listen "0.0.0.0:9449" --externaladdress "0.0.0.0:9449" --norpcauth --rpclisten "0.0.0.0:9349"
fi
# Shard 1
if [ "$1" == "shard1-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXBPJQWJTyPdzWsfsUCFTDhcas3y2MYsauKo66euh1udG8dSh2ZszSbfqHwCpYHPRSpFTxYkUcVa619XUM6DjdV7FfUWvYoziWE2Bm" --datadir "data/shard1-0" --listen "0.0.0.0:9438" --externaladdress "0.0.0.0:9438" --norpcauth --rpclisten "0.0.0.0:9338"
fi
if [ "$1" == "shard1-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXN2SLxQncPYvFdzEivznKjBxK5byYmPbAhnEEv8TderLG7NUD7nwAEDu7DJ7pnCKw9N5PuTuELCHz8qKc7z9S9jF8QG41u7Vomc6L" --datadir "data/shard1-1" --listen "0.0.0.0:9439" --externaladdress "0.0.0.0:9439" --norpcauth --rpclisten "0.0.0.0:9339"
fi
if [ "$1" == "shard1-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXs5os49h71E7utfHatnWGQnirbVF2b5Ua8h1ttidk1S5AFcUqHCDmpMziiFC15BG8W1LQKK5tYcvr2CM7DyYgsfVmAWYh4kQ6f33T" --datadir "data/shard1-2" --listen "0.0.0.0:9440" --externaladdress "0.0.0.0:9440" --norpcauth --rpclisten "0.0.0.0:9340"
fi
if [ "$1" == "shard1-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXvcE6sxwt7nQ6mH6KdPMWyQRv6xAd3WWorzS7k26YPjm4mvFtC51bRaU18yubQm1N3gBeDJJyXqWmxi5QdCkqYExCEkSqNpD1Wzpz" --datadir "data/shard1-3" --listen "0.0.0.0:9441" --externaladdress "0.0.0.0:9441" --norpcauth --rpclisten "0.0.0.0:9341"
fi
if [ "$1" == "shard1-4" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnbWqq4fuHqGCQnDheJYiwivno3A1yjosf1KqWb6Gx5dLaNEM7gaf5VkFK2Tq7EgmvPNsUPNhmwg5dGcVjp6iAv2psdXLez7MuRCyMD" --datadir "data/shard1-4" --listen "0.0.0.0:9442" --externaladdress "0.0.0.0:9442" --norpcauth --rpclisten "0.0.0.0:9342"
fi
if [ "$1" == "shard1-5" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnc6AKDpJTQhKjdKfwiDDeiuYP99ReTByJFvrE2mCU2NkA6BvDk7QM5AnC8DGg3LR3PimqJJTewByQ6bGq2kyX3db6RgXUt1LDj2qyf" --datadir "data/shard1-5" --listen "0.0.0.0:9443" --externaladdress "0.0.0.0:9443" --norpcauth --rpclisten "0.0.0.0:9343"
fi
if [ "$1" == "shard1-6" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rngcesKEsu2mCGxrhwcrgaEUzj2vtq5VQCw4udnyHyAjyJVwRppwjgfVo3ftoaHq9rVgDEE624r3CRefJhE5byYiUsiH2jAznvEaoUL" --datadir "data/shard1-6" --listen "0.0.0.0:9444" --externaladdress "0.0.0.0:9444" --norpcauth --rpclisten "0.0.0.0:9344"
fi
if [ "$1" == "shard1-7" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnhAkrH68M43EZ4JUboQ89KhDAv5Jz2deADHHKrNMoeMD6YktnYa79fjXhkfsAP9YBbeLGEhPrrVciS2bEPW55dJdTdNVH5ERejCEFj" --datadir "data/shard1-7" --listen "0.0.0.0:9445" --externaladdress "0.0.0.0:9445" --norpcauth --rpclisten "0.0.0.0:9345"
fi
# Shard 2
if [ "$1" == "shard2-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnX2Fngsy1KuJv5GLLNUeB3gZwoHMss2cqRr1ECa2ibR7FQNUyE7kMFvq7rGtqVJULo8XfAxThuLxUwd8vv76MojbL3wPhxmTvbcd2S" --datadir "data/shard2-0" --listen "0.0.0.0:9442" --externaladdress "0.0.0.0:9442" --norpcauth --rpclisten "0.0.0.0:9342"
fi
if [ "$1" == "shard2-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXRrZ1gC7MYNFVUA1paZrE3iSiAb9AR7Z5quNBgR2ovrcfj8p4kTb3ynx6ddjnoPey3qA2vRiP17tCvpCHU9xBDwMq8D1Mg2GBM9eC" --datadir "data/shard2-1" --listen "0.0.0.0:9443" --externaladdress "0.0.0.0:9443" --norpcauth --rpclisten "0.0.0.0:9343"
fi
if [ "$1" == "shard2-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXbsJF4f5xtzM2jPW6dCYHChNksth7X64iUkLR4bGi2JBVjgJQRLeKRsdbiFaYMsxzrfbfKAp4TELGre45QkxHWCnwVXPGnnZjJKVL" --datadir "data/shard2-2" --listen "0.0.0.0:9444" --externaladdress "0.0.0.0:9444" --norpcauth --rpclisten "0.0.0.0:9344"
fi
if [ "$1" == "shard2-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnY4DeSGZYb8r8sSN5WJr6ZL3NCafYAQ7f7Am9KXQDGSc3Qddpn7BfHW1i6CoVVk8vKEzJ25vA9uc9EdhoLU98eoUw7fMrPPrBdNB7Q" --datadir "data/shard2-3" --listen "0.0.0.0:9445" --externaladdress "0.0.0.0:9445" --norpcauth --rpclisten "0.0.0.0:9345"
fi
# Shard 3
if [ "$1" == "shard3-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXBg35mhRzZDw7nNQCiRcM9QLg2DTHewY7kRZ3XCmgkdQa4iVcMUwMd5DTvvjEcCvv3SnCo5zSQpS93zskAxG6tdvR1QPBxtCmaBCK" --datadir "data/shard3-0" --listen "0.0.0.0:9446" --externaladdress "0.0.0.0:9446" --norpcauth --rpclisten "0.0.0.0:9346"
fi
if [ "$1" == "shard3-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXa3USo2wMdyuZTfurZrYe1ZJhqibnp9GHx8Jkf9dh5cU39sjqBTKoWPtNHvVZn2eqGj6V26PmELez85bUUBMBKG6tqFQrer2GkuJ4" --datadir "data/shard3-1" --listen "0.0.0.0:9447" --externaladdress "0.0.0.0:9447" --norpcauth --rpclisten "0.0.0.0:9347"
fi
if [ "$1" == "shard3-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXc38wPUsDdRasThfk58ME3KoSdeyXJS3tsyRuxPrSkvuc8MBT1gxiQjSCMBbifqibxEVAHimGcfnLbjVEEett8FtwFuBQ8zAUHTet" --datadir "data/shard3-2" --listen "0.0.0.0:9448" --externaladdress "0.0.0.0:9448" --norpcauth --rpclisten "0.0.0.0:9348"
fi
if [ "$1" == "shard3-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnY6BgeU6bk7Nui1TwB2w2MsG3UeSXrgJ1n2tGVs66Qk9YT6E15PbXR4ai7eW1qyPrW7a2AUtN2otuXtBAZKtm2DDiUxh3ngZ6JPYHv" --datadir "data/shard3-3" --listen "0.0.0.0:9449" --externaladdress "0.0.0.0:9449" --norpcauth --rpclisten "0.0.0.0:9349"
fi
# Beacon
if [ "$1" == "beacon-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXCerQX2RRd8KhPfsFCj2rrBYUx42FZJKgRFcdBfg36Mid3ygKyMn5LSc5LBHsxqapRaN6xMav7bGhA6VtGUzNNYuA9Y78CB5oGkti" --datadir "data/beacon-0" --listen "0.0.0.0:9450" --externaladdress "0.0.0.0:9450" --norpcauth --rpclisten "0.0.0.0:9350"
fi
if [ "$1" == "beacon-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXYgxipKvTJJfHg7tQhcdmA2R1jPpCPmXg37Xi1VfgrFzWFuNy4U6828q1yfbD7VEdutD63HfVYAqL6U32joXVjqdkfUP52LnNGXda" --datadir "data/beacon-1" --listen "0.0.0.0:9451" --externaladdress "0.0.0.0:9451" --norpcauth --rpclisten "0.0.0.0:9351"
fi
if [ "$1" == "beacon-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnXe3Jxg5d1Rejg2fB1NwnqNsr94RCT3PX14h5NNDjrdgLeEWFkqcMNamKCHask1Gx46g5WYZDKHKx7kzLVD7h1cgvU6NxNijkyGmA9" --datadir "data/beacon-2" --listen "0.0.0.0:9452" --externaladdress "0.0.0.0:9452" --norpcauth --rpclisten "0.0.0.0:9352"
fi
if [ "$1" == "beacon-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rnY2gqonwhnhGD6rKeEXkbJDB7DHUtZQKC8SfLci6ABb5eCEj4o7ezWBZWaGbu7CJ1R1mrADGqmRjugg42GeA6jhaXbNDeP2HUr8udw" --datadir "data/beacon-3" --listen "0.0.0.0:9453" --externaladdress "0.0.0.0:9453" --norpcauth --rpclisten "0.0.0.0:9353"
fi
# Beacon
if [ "$1" == "beacon-new-0" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8sSijugr8azxAiHMWS9rA22grKDv5o7AEXQ9datpT1V7N5FLHiJMjvfVnXcitL3fpj35Xt5DNnBq8iFq618X31nCgn2RjrYx5tZZWCtj" --datadir "data/beacon-0" --listen "0.0.0.0:9460" --externaladdress "0.0.0.0:9460" --norpcauth --rpclisten "0.0.0.0:9360"
fi
if [ "$1" == "beacon-new-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8sSjSEck5J5RKWGWurVfigruYDxEzjjVPqHaTRJ57YFNo7gXBH8onUQxtdpoyFnBZrLhfGWQ4k4MNadwa6F7qYwcuFLW9R1VxTfN7q4d" --datadir "data/beacon-1" --listen "0.0.0.0:9461" --externaladdress "0.0.0.0:9461" --norpcauth --rpclisten "0.0.0.0:9361"
fi
if [ "$1" == "beacon-new-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8sSjkAqVJi4KkbCS75GYrsag7QZYP7FTPRfZ63D1AJgzfmdHnE9sbpdJV4Kx5tN9MgbqbRYDgzER2xpgsxrHvWxNgTHHrghYwLJLfe2R" --datadir "data/beacon-2" --listen "0.0.0.0:9462" --externaladdress "0.0.0.0:9462" --norpcauth --rpclisten "0.0.0.0:9362"
fi
if [ "$1" == "beacon-new-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8sSj637mhpaJUboUEjkXsEUQm8q82T6kND3mWtNwig71qX2aFeZegWYsLVtyxBWdiZMBoNkdJ1MZYAcWetUP8DjYFnUac4vW7kzHfYsc" --datadir "data/beacon-3" --listen "0.0.0.0:9463" --externaladdress "0.0.0.0:9463" --norpcauth --rpclisten "0.0.0.0:9363"
fi
# FullNode testnet
if [ "$1" == "fullnode-testnet" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --testnet true --nodemode "relay" --externaladdress "127.0.0.1:9433" --enablewallet --wallet "wallet" --walletpassphrase "12345678" --walletautoinit --norpcauth --datadir "../testnet/fullnode" --usecoindata --coindatapre="__coins__" --discoverpeersaddress "testnet-bootnode.incognito.org:9330" --norpcauth --rpclisten "0.0.0.0:8334" --rpcwslisten "127.0.0.1:18338" > ../testnet/log.txt 2> ../testnet/error_log.txt &
fi
if [ "$1" == "fullnode-testnet-1" ]; then
GO111MODULE=on GETH_NAME=kovan.infura.io/v3/1138a1e99b154b10bae5c382ad894361 GETH_PROTOCOL=https GETH_PORT="" INCOGNITO_NETWORK_KEY=testnet INCOGNITO_NETWORK_VERSION_KEY=1 ./incognito --is_full_validation true --loglevel "debug" --relayshards "[0]" --externaladdress "127.0.0.1:9433" --enablewallet --wallet "wallet" --walletpassphrase "12345678" --walletautoinit --norpcauth --datadir "../inc-data/testnet/fullnode" --usecoindata --coindatapre="__coins__" --discoverpeersaddress "testnet-bootnode.incognito.org:9330" --norpcauth --rpclisten "0.0.0.0:7334" --rpcwslisten "127.0.0.1:17338" > ../inc-data/testnet/log.txt 2> ../inc-data/testnet/error_log.txt &
fi
if [ "$1" == "fullnode-testnet-2" ]; then
GO111MODULE=on GETH_NAME=kovan.infura.io/v3/1138a1e99b154b10bae5c382ad894361 GETH_PROTOCOL=https GETH_PORT="" INCOGNITO_NETWORK_KEY=testnet INCOGNITO_NETWORK_VERSION_KEY=2 ./incognito --is_full_validation true --loglevel "debug" --relayshards "[0]" --externaladdress "127.0.0.1:9433" --enablewallet --wallet "wallet" --walletpassphrase "12345678" --walletautoinit --norpcauth --datadir "../inc-data/testnet2/fullnode" --usecoindata --coindatapre="__coins__" --discoverpeersaddress "74.207.247.250:9330" --norpcauth --rpclisten "0.0.0.0:8334" --rpcwslisten "127.0.0.1:18338" > ../inc-data/testnet2/log.txt 2> ../inc-data/testnet2/error_log.txt &
fi
if [ "$1" == "fullnode-mainnet" ]; then
Profiling=6060 GO111MODULE=on GETH_NAME=eth-fullnode.incognito.org GETH_PROTOCOL=https GETH_PORT="" INCOGNITO_NETWORK_KEY=mainnet ./incognito --is_full_validation true --loglevel "debug" --relayshards "[0,1,2,3,4,5]" --externaladdress "127.0.0.1:9433" --enablewallet --wallet "wallet" --walletpassphrase "12345678" --walletautoinit --norpcauth --datadir "../inc-data/mainnet/fullnode" --usecoindata --coindatapre="__coins__" --discoverpeersaddress "mainnet-bootnode.incognito.org:9330" --norpcauth --rpclisten "0.0.0.0:6334" --rpcwslisten "127.0.0.1:16338" > ../inc-data/mainnet/log.txt 2> ../inc-data/mainnet/error_log.txt &
fi
######
if [ "$1" == "shard-candidate-1" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rq19Uu7UGbTApZzZwCAvVszAgRNAzHzr3p8Cu75jPH3h5AUtRXMKiqF3hw8NbEfeLcjtbpeUvJfw4tGj7pbqwDYngc8wB13Gf77o33f" --datadir "data/shard-stake" --listen "127.0.0.1:9455" --externaladdress "127.0.0.1:9455" --norpcauth --rpclisten "127.0.0.1:9355"
fi
if [ "$1" == "shard-candidate-2" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rrEW3NPNgU8xzbeqE7cr4WTT8JvyaQqSZyczA5hBJVvpQMTBVqNfcCdzhvquWCHH11jHihZtgyJqbdWPhWYbmmsw5aV29WSXBEsgbVX" --datadir "data/shard-stake-2" --listen "127.0.0.1:9456" --externaladdress "127.0.0.1:9456" --norpcauth --rpclisten "127.0.0.1:9356"
fi
if [ "$1" == "shard-candidate-3" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rnY15HgjpbJn1es84ysseB6q9UQ5SwB6Eb82yejEQ3yzhd1dm5ShEiezdfMoEzBgvkuKcFdP5TY3SuWNHXKa1Krprsfxnk5wy7wZ6Dg" --datadir "data/shard-stake-6" --listen "0.0.0.0:9460" --externaladdress "0.0.0.0:9460" --norpcauth --rpclisten "0.0.0.0:9360"
fi
if [ "$1" == "shard-candidate-4" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8roHikeAFyuBpdCU76kXurEqrC9VYWyRyfFb6PwX6nip9KGYbwpXL78H92mUoWK2GWkA2WysgXbHqwSxnC6XCkmtxBVb3zJeCXgfcYyL" --datadir "data/shard-stake-3" --listen "0.0.0.0:9457" --externaladdress "0.0.0.0:9457" --norpcauth --rpclisten "0.0.0.0:9357"
fi
if [ "$1" == "shard-candidate-5" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rr4sE2L8WzsVNEN9WsiGcMTDCmEH9TC1ZK8517cxURRFNoWoStYQTgqXpiAMU4gzmkmnWahHdGvQqFaY1JTVsn3nHfD5Ppgz8hQDiVC" --datadir "data/shard-stake-4" --listen "0.0.0.0:9458" --externaladdress "0.0.0.0:9458" --norpcauth --rpclisten "0.0.0.0:9358"
fi
if [ "$1" == "shard-candidate-6" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rtt9Kd5LUcfXNmd7aMnQehCnKabArVB3BUk2RHVjeh88x5MJnJY4okB8JdFm4JNm4A2WjSe58qWNVkJPEFjpLHNYfKHpWfRdqyfDD9f" --datadir "data/shard-stake-5" --listen "0.0.0.0:9459" --externaladdress "0.0.0.0:9459" --norpcauth --rpclisten "0.0.0.0:9359"
fi
if [ "$1" == "shard-candidate-7" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rna7M8BYBfNjNHmw3Tie6Yir9mQgp5rSRgUngTqn6A6iSRvAPex4sXsmGxVzXcpUUDfnRfRys3QrPnTHauiipdUNtj7Ef6t3mHUwiC3" --datadir "data/shard-stake-7" --listen "0.0.0.0:9461" --externaladdress "0.0.0.0:9461" --norpcauth --rpclisten "0.0.0.0:9361"
fi
if [ "$1" == "shard-candidate-8" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8sSj637mhpaJUboUEjkXsEUQm8q82T6kND3mWtNwig71qX2aFeZegWYsLVtyxBWdiZMBoNkdJ1MZYAcWetUP8DjYFnUac4vW7kzHfYsc" --datadir "data/shard-stake-8" --listen "0.0.0.0:9462" --externaladdress "0.0.0.0:9462" --norpcauth --rpclisten "0.0.0.0:9362"
fi
if [ "$1" == "shard-candidate-9" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8sSjSEck5J5RKWGWurVfigruYDxEzjjVPqHaTRJ57YFNo7gXBH8onUQxtdpoyFnBZrLhfGWQ4k4MNadwa6F7qYwcuFLW9R1VxTfN7q4d" --datadir "data/shard-stake-9" --listen "0.0.0.0:9463" --externaladdress "0.0.0.0:9463" --norpcauth --rpclisten "0.0.0.0:9363"
fi
if [ "$1" == "shard-candidate-10" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8sSijugr8azxAiHMWS9rA22grKDv5o7AEXQ9datpT1V7N5FLHiJMjvfVnXcitL3fpj35Xt5DNnBq8iFq618X31nCgn2RjrYx5tZZWCtj" --datadir "data/shard-stake-10" --listen "0.0.0.0:9464" --externaladdress "0.0.0.0:9464" --norpcauth --rpclisten "0.0.0.0:9364"
fi
if [ "$1" == "shard-candidate-11" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8sSjkAqVJi4KkbCS75GYrsag7QZYP7FTPRfZ63D1AJgzfmdHnE9sbpdJV4Kx5tN9MgbqbRYDgzER2xpgsxrHvWxNgTHHrghYwLJLfe2R" --datadir "data/shard-stake-11" --listen "0.0.0.0:9465" --externaladdress "0.0.0.0:9465" --norpcauth --rpclisten "0.0.0.0:9365"
fi
if [ "$1" == "shard-candidate-12" ]; then
INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rnaLC8yRN5im7BgETP2y6nDbWrxfn2sfQaJvDqV7siRoLLaYnaehad7dY4L7n3dTd4XbYFfbr867vFq2uqCm36PmTq9usop6oH3MKQf" --datadir "data/shard-stake-12" --listen "0.0.0.0:9466" --externaladdress "0.0.0.0:9466" --norpcauth --rpclisten "0.0.0.0:9366"
fi
#if [ "$1" == "shard-stake-9" ]; then
#INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "127.0.0.1:9330" --privatekey "112t8rnaLC8yRN5im7BgETP2y6nDbWrxfn2sfQaJvDqV7siRoLLaYnaehad7dY4L7n3dTd4XbYFfbr867vFq2uqCm36PmTq9usop6oH3MKQf" --datadir "data/shard-stake-9" --listen "0.0.0.0:9463" --externaladdress "0.0.0.0:9463" --norpcauth --rpclisten "0.0.0.0:9363"
#fi
####full node
# INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --nodemode "relay" --relayshards "all" --datadir "data/fullnode" --listen "0.0.0.0:9459" --externaladdress "0.0.0.0:9459" --norpcauth --rpclisten "0.0.0.0:9359"
###### SINGLE_MEMBER
######
## Shard: 0, Role: Proposer
#if [ "$1" == "shard0-proposer" ]; then
#INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rqJHgJp2TPpNpLNx34aWHB5VH5Pys3hVjjhhf9tctVeCNmX2zQLBqzHau6LpUbSV52kXtG2hRZsuYWkXWF5kw2v24RJq791fWmQxVqy" --datadir "data/shard-0" --listen "0.0.0.0:9460" --externaladdress "0.0.0.0:9460" --norpcauth --rpclisten "0.0.0.0:9360"
#fi
## Shard: 1, Role: Proposer
#if [ "$1" == "shard1-proposer" ]; then
#INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rrEEcDQBMnUM5J17qniHZZmckmr8LGCv9nBjP9x5wmGFGUryKTNvEAf1jh2wwW69rxwtANq4m8JmzowfKVPayUHPmAKdwQw5718GKuH" --datadir "data/shard-1" --listen "0.0.0.0:9461" --externaladdress "0.0.0.0:9461" --norpcauth --rpclisten "0.0.0.0:9361"
#fi
## Beacon, Role: Proposer
#if [ "$1" == "shard2-proposer" ]; then
#INCOGNITO_NETWORK_KEY=local-dcs ./incognito --usecoindata --coindatapre="__coins__" --discoverpeersaddress "0.0.0.0:9330" --privatekey "112t8rotpPVSeHrknwVUTLQgy2avatUWKh2oV9EjVMw6eEtwyJT1FsrHGzvBaLpHL4gPVfJjuSUWvTtiTKuWGNNwGuLo8SHCgfA36ttJ5J7u" --datadir "data/beacon" --listen "0.0.0.0:9462" --externaladdress "0.0.0.0:9462" --norpcauth --rpclisten "0.0.0.0:9362"
#fi
## Relay node
#if [ "$1" == "relaynode" ]; then
#INCOGNITO_NETWORK_KEY=local-dcs ./incognito --relayshards "all" --datadir "data/relaynode" --listen "0.0.0.0:9463" --externaladdress "0.0.0.0:9463" --norpcauth --rpclisten "0.0.0.0:9363" --enablewallet --wallet "wallet3" --walletpassphrase "12345678" --walletautoinit
#fi