Skip to content

Add XDC logo to header that links to https://xdc.org/build #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 132 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
8088811
Merge pull request #149 from XDC-Community/develop
WalterBlueu Nov 15, 2022
5de7e7b
GitBook: [#135] No subject
MrBlockchain22 Nov 16, 2022
a6fbd49
Create Readme.md
mogithehurt Nov 21, 2022
0ebb19d
Add files via upload
mogithehurt Nov 21, 2022
539ffcb
Delete Readme.md
mogithehurt Nov 21, 2022
4a87412
Add files via upload
mogithehurt Nov 21, 2022
0a11493
GitBook: [#136] Stubbing out how-to xrc20 with Foundry
WalterBlueu Nov 22, 2022
ca2a12d
Merge pull request #151 from mogithehurt/main
WalterBlueu Nov 22, 2022
5599f6a
Promoting XRC20 with Foundry
WalterBlueu Nov 22, 2022
6106720
GitBook: [#137] Updating name
WalterBlueu Nov 22, 2022
4fb2ce6
Update how-to-create-and-deploy-an-xrc20-token-using-foundry.md
WalterBlueu Nov 22, 2022
8a51f8b
GitBook: [#139] No subject
Nov 23, 2022
00d6783
GITBOOK-140: subnets
WalterBlueu Feb 8, 2023
e978e60
GITBOOK-142: No subject
MrBlockchain22 Feb 12, 2023
50d4438
GITBOOK-143: No subject
MrBlockchain22 Feb 12, 2023
23b1b47
GITBOOK-144: No subject
MrBlockchain22 Feb 12, 2023
17ef18b
GITBOOK-146: No subject
CoinClubQuincy Feb 15, 2023
52a3593
GITBOOK-147: No subject
CoinClubQuincy Feb 15, 2023
8d41b33
GITBOOK-149: No subject
CoinClubQuincy Feb 15, 2023
84ad49d
GITBOOK-150: No subject
CoinClubQuincy Feb 16, 2023
6d44b3f
GITBOOK-151: No subject
CoinClubQuincy Feb 16, 2023
dd25921
GITBOOK-152: Removing Subnet section until after XDC 2.0 is live
WalterBlueu Feb 16, 2023
0f629f2
GITBOOK-153: No subject
MrBlockchain22 Feb 16, 2023
fa90941
GITBOOK-145: added github link
CoinClubQuincy Feb 20, 2023
b0795c4
GITBOOK-154: Removing Subnet Documentation until after XDC 2.0
WalterBlueu Mar 6, 2023
bbf9435
GITBOOK-155: No subject
CoinClubQuincy Mar 9, 2023
8e08852
GITBOOK-156: No subject
CoinClubQuincy Mar 9, 2023
66a32a6
GITBOOK-157: No subject
CoinClubQuincy Mar 15, 2023
c53cd68
GITBOOK-158: No subject
MrBlockchain22 Mar 24, 2023
752a839
GITBOOK-160: change request with no subject merged in GitBook
MrBlockchain22 Mar 27, 2023
dd503a5
GITBOOK-161: change request with no subject merged in GitBook
CoinClubQuincy Mar 27, 2023
27bd90e
GITBOOK-162: change request with no subject merged in GitBook
CoinClubQuincy Apr 2, 2023
3d2e179
GITBOOK-163: change request with no subject merged in GitBook
CoinClubQuincy Apr 5, 2023
efba84b
GITBOOK-164: change request with no subject merged in GitBook
CoinClubQuincy Apr 5, 2023
c740597
GITBOOK-165: change request with no subject merged in GitBook
CoinClubQuincy Apr 5, 2023
7da5acd
GITBOOK-166: change request with no subject merged in GitBook
CoinClubQuincy Apr 5, 2023
6afd54b
GITBOOK-167: change request with no subject merged in GitBook
CoinClubQuincy Apr 19, 2023
200006f
GITBOOK-170: change request with no subject merged in GitBook
May 8, 2023
8db8468
add xdpos v2 api and migration details
liam-lai Jun 3, 2023
2d212ec
Update README.md
s4njk4n Jun 4, 2023
cbb4ab2
Update README.md
s4njk4n Jun 4, 2023
89c78ea
Update README.md
s4njk4n Jun 4, 2023
dfaf8d5
Merge pull request #156 from s4njk4n/main
WalterBlueu Jun 13, 2023
a0a7e96
Merge pull request #155 from liam-lai/main
WalterBlueu Jun 13, 2023
68bc6a6
Create securing-your-xdc-masternode.md
s4njk4n Jun 15, 2023
e074fbc
Add files via upload
s4njk4n Jun 15, 2023
764a406
Update securing-your-xdc-masternode.md
s4njk4n Jun 15, 2023
09fea2f
Centre justified images
s4njk4n Jun 15, 2023
8508f71
GITBOOK-171: change request with no subject merged in GitBook
Jun 15, 2023
ec7975e
GITBOOK-172: change request with no subject merged in GitBook
Jun 15, 2023
e176396
Merge pull request #158 from s4njk4n/main
cryptoRREN Jun 16, 2023
d6616e7
GITBOOK-174: change request with no subject merged in GitBook
MrBlockchain22 Jun 18, 2023
9a15276
GITBOOK-175: change request with no subject merged in GitBook
MrBlockchain22 Jun 18, 2023
9911ebd
Update mainnet.md
lucksin3 Jun 20, 2023
223df8d
Merge pull request #159 from lucksin3/patch-3
cryptoRREN Jun 20, 2023
0efd84c
chore: remove and ignore unwanted gitbook and macos files
alexjorgef Jan 11, 2023
0372d49
chore: fix code highlights for smart-contract's guides
alexjorgef Jan 11, 2023
81ef81e
Update SUMMARY.md
s4njk4n Jun 25, 2023
aea2cc2
Merge pull request #160 from s4njk4n/main
cryptoRREN Jun 26, 2023
1515f5e
GITBOOK-176: change request with no subject merged in GitBook
Jun 30, 2023
0ab44d0
Update securing-your-xdc-masternode.md
s4njk4n Jul 6, 2023
a1645e8
Merge pull request #166 from s4njk4n/main
cryptoRREN Jul 12, 2023
66363e2
Add local images so not hosted externally
s4njk4n Jul 26, 2023
1eac143
Merge pull request #167 from s4njk4n/main
cryptoRREN Jul 26, 2023
34fdc7c
Update securing-your-xdc-masternode.md
s4njk4n Jul 26, 2023
fb9bdcb
Create uptime-monitoring-xdc-masternode.md
s4njk4n Aug 2, 2023
e0a6738
Added local images for uptime robot article
s4njk4n Aug 2, 2023
d5b9aa2
Update image links to local files
s4njk4n Aug 2, 2023
a41389e
Added Apothem section with local image links
s4njk4n Aug 2, 2023
f5d4df5
Updated internal page links
s4njk4n Aug 2, 2023
ac709f6
Merge pull request #168 from s4njk4n/main
cryptoRREN Aug 7, 2023
202424a
Added Uptime Monitoring link to table of contents
s4njk4n Aug 13, 2023
a832716
Update SUMMARY.md
s4njk4n Aug 13, 2023
22e502f
Create how-to-ssl-tls-encryption-for-xdc-rpc.md
s4njk4n Aug 14, 2023
31f8a30
Update how-to-ssl-tls-encryption-for-xdc-rpc.md
s4njk4n Aug 16, 2023
a4399a1
Added Nginx logo for SSLTLS RPC article
s4njk4n Aug 18, 2023
e49465e
Added image to repo for docker ip address for SSLTLS pge
s4njk4n Aug 20, 2023
5c7dee5
Add image 2 repo 4 nginx.conf on initial opening
s4njk4n Aug 20, 2023
8a924c9
Delete image29 -nginx-config-file-original-on-opening.png
s4njk4n Aug 20, 2023
78d4d63
Readd png 2 repo 4 nginx.conf on initial opening
s4njk4n Aug 20, 2023
e8678d0
Added modified nginx.conf image for SSLTLSRPC page
s4njk4n Aug 22, 2023
176cd1d
Modified nginx image source to local file
s4njk4n Aug 23, 2023
0e2fecf
Updated image source for Docker Container IP Address in SSLTLSRPC doc
s4njk4n Aug 24, 2023
f48ad33
Updated to local image source for nginx.conf original appearance
s4njk4n Aug 25, 2023
8faf8a7
Updated to local image source for image of updated nginx.conf
s4njk4n Aug 26, 2023
436ac49
Changed to local image source for Appendix A header image
s4njk4n Aug 26, 2023
c47a500
Removed XDC footers from original article
s4njk4n Aug 27, 2023
5ef97ba
Started Appendix B and added to header
s4njk4n Aug 28, 2023
4ffa9ab
Formatted header notes
s4njk4n Aug 28, 2023
b5ec69f
Removed Secure Websocket
s4njk4n Aug 28, 2023
d81b645
Added RPC Encryption page to table of contents
s4njk4n Aug 30, 2023
d7a4358
Merge pull request #169 from s4njk4n/main
cryptoRREN Sep 1, 2023
f423b62
Create commands-and-config.md
s4njk4n Sep 1, 2023
6ff9402
Delete run-a-node/commands-and-config.md
s4njk4n Sep 1, 2023
9eb4553
Create node-commands-and-config.md
s4njk4n Sep 1, 2023
f443b5c
Update node-commands-and-config.md
s4njk4n Sep 3, 2023
c4903a3
Added heading
s4njk4n Sep 4, 2023
1a32d26
Removed intro paragraph
s4njk4n Sep 4, 2023
4df33a0
Removed footer links
s4njk4n Sep 5, 2023
989a019
Added local image of commands for xdc client
s4njk4n Sep 6, 2023
b8069fc
Added local image of docker-compose yml contents
s4njk4n Sep 8, 2023
7706ed1
Updated first image source to local file
s4njk4n Sep 8, 2023
494497e
Update second image source to locally stored file
s4njk4n Sep 9, 2023
ad84a74
Added Appendix header image
s4njk4n Sep 11, 2023
7f00a93
Added Commands and Config Options to TOC
s4njk4n Sep 13, 2023
da9ab3b
GITBOOK-177: change request with no subject merged in GitBook
CoinClubQuincy Sep 23, 2023
007e3c5
GITBOOK-178: change request with no subject merged in GitBook
Sep 25, 2023
2fdab43
GITBOOK-179: change request with no subject merged in GitBook
Sep 25, 2023
abf670a
Added ssl-cert group creation command
s4njk4n Sep 28, 2023
a8b0a05
Merge pull request #170 from s4njk4n/main
cryptoRREN Sep 28, 2023
460c39c
Update mainnet.md
cryptoRREN Oct 5, 2023
ffde6ee
Update metamask.md
cryptoRREN Oct 5, 2023
5ab985c
Merge pull request #171 from cryptoRREN/main
cryptoRREN Oct 5, 2023
dfed57e
Merge pull request #154 from alexjorgef/fix-codehighlight-getstarted-…
cryptoRREN Oct 16, 2023
0c41541
Merge pull request #153 from alexjorgef/remove-ignore-dstore
cryptoRREN Oct 16, 2023
dfcb030
Update README.md
cryptoRREN Oct 17, 2023
8fa19c0
Update xdc-rpcs.md
lucksin3 Oct 19, 2023
7eafc69
Merge pull request #172 from lucksin3/main
cryptoRREN Oct 19, 2023
e2b1610
Mainnet & Testnet
cryptoRREN Oct 23, 2023
e7edfc4
added ANKR as premium RPCs
lucksin3 Oct 23, 2023
a2a43cf
Merge pull request #173 from lucksin3/main
cryptoRREN Oct 24, 2023
23681b7
GITBOOK-180: change request with no subject merged in GitBook
CoinClubQuincy Oct 25, 2023
cb24526
GITBOOK-181: change request with no subject merged in GitBook
CoinClubQuincy Oct 26, 2023
b4d40c0
Update tokenization.md
cryptoRREN Oct 26, 2023
7e50623
GITBOOK-182: change request with no subject merged in GitBook
CoinClubQuincy Oct 26, 2023
0b4c20f
Update README.md
cryptoRREN Oct 27, 2023
c44f700
Update what-is-a-dapp.md
cryptoRREN Oct 31, 2023
e9f809c
GITBOOK-183: change request with no subject merged in GitBook
Nov 1, 2023
8da5e63
GITBOOK-184: change request with no subject merged in GitBook
CoinClubQuincy Nov 20, 2023
48d4a2e
Update README.md
cslider1 Dec 1, 2023
c248815
Update README.md
cslider1 Dec 1, 2023
5be41d3
Update Get Started page
cslider1 Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitbook/assets/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PRIVATE_KEY_1=
Empty file added .gitbook/assets/.env.sample
Empty file.
1,852 changes: 1,852 additions & 0 deletions .gitbook/assets/.gitignore

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions .gitbook/assets/.gitignore (1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore

# Node artifact files
node_modules/
dist/

# Compiled Java class files
*.class

# Compiled Python bytecode
*.py[cod]

# Log files
*.log

# Package files
*.jar

# Maven
target/
dist/

# JetBrains IDE
.idea/

# Unit test reports
TEST*.xml

# Generated by MacOS
.DS_Store

# Generated by Windows
Thumbs.db

# Applications
*.app
*.exe
*.war

# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv

2 changes: 2 additions & 0 deletions .gitbook/assets/.gitignore (2)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*_network
nodes*
Empty file added .gitbook/assets/.pwd
Empty file.
1,750 changes: 1,750 additions & 0 deletions .gitbook/assets/LICENSE (1).txt

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .gitbook/assets/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright © 2022 XDC Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions .gitbook/assets/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global-include *.txt *.py *.md
Binary file added .gitbook/assets/Node1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added .gitbook/assets/__init__.py
Empty file.
21 changes: 21 additions & 0 deletions .gitbook/assets/add.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
export $(cat .env | xargs)
Bin_NAME=XDC
WORK_DIR=$PWD
PROJECT_DIR="/home/xinfin/github/xinFinOrg/XDPoS-TestNet-Apothem"
cd $PROJECT_DIR && make $Bin_NAME
cd $WORK_DIR

if [ ! -d ./nodes/4/$Bin_NAME/chaindata ]
then
wallet4=$(${PROJECT_DIR}/build/bin/$Bin_NAME account import --password .pwd --datadir ./nodes/4 <(echo ${PRIVATE_KEY_4}) | awk -v FS="({|})" '{print $2}')
${PROJECT_DIR}/build/bin/$Bin_NAME --datadir ./nodes/4 init ./genesis/genesis.json
else
wallet4=$(${PROJECT_DIR}/build/bin/$Bin_NAME account list --datadir ./nodes/4 | head -n 1 | awk -v FS="({|})" '{print $2}')
fi

VERBOSITY=3
GASPRICE="1"

echo Starting the nodes ...
${PROJECT_DIR}/build/bin/$Bin_NAME --bootnodes "enode://7d8ffe6d28f738d8b7c32f11fb6daa6204abae990a842025b0a969aabdda702aca95a821746332c2e618a92736538761b1660aa9defb099bc46b16db28992bc9@127.0.0.1:30301" --syncmode 'full' --datadir ./nodes/4 --networkid 853 --port 30306 --rpc --rpccorsdomain "*" --rpcaddr 0.0.0.0 --rpcport 8548 --rpcvhosts "*" --unlock "${wallet4}" --password ./.pwd --mine --gasprice "${GASPRICE}" --targetgaslimit "420000000" --verbosity ${VERBOSITY} --ethstats "XinFin-MasterNode-04:xinfin_network_stats@localhost:3005"
1 change: 1 addition & 0 deletions .gitbook/assets/bootnode.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7b7742af825d6dd12b5da3ad24a01692ff0c17269db139b29712e35ac0840eb5
1,221 changes: 1,221 additions & 0 deletions .gitbook/assets/code frequency

Large diffs are not rendered by default.

1,209 changes: 1,209 additions & 0 deletions .gitbook/assets/commit activity

Large diffs are not rendered by default.

1,272 changes: 1,272 additions & 0 deletions .gitbook/assets/contributors

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .gitbook/assets/createAccount.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from bitcoin import random_key



# Gets private key of wallet to create new account.

def createAccount():
privateKey = random_key()
return privateKey
1,312 changes: 1,312 additions & 0 deletions .gitbook/assets/daily

Large diffs are not rendered by default.

1,255 changes: 1,255 additions & 0 deletions .gitbook/assets/dependencies

Large diffs are not rendered by default.

Empty file added .gitbook/assets/enodes_list.txt
Empty file.
113 changes: 113 additions & 0 deletions .gitbook/assets/genesis.json

Large diffs are not rendered by default.

1,312 changes: 1,312 additions & 0 deletions .gitbook/assets/halfweekly

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image14-apothem-yml-file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image15-appendix-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image16-uptime-robot-site.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image18-monitor-type-ping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image19-friendly-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image20-contacts-to-notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image21-create-monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image22-locations-and-ips.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image24-wget-ip-file.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image25-whitelisted-ips.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image27-nginx-logo.png
Binary file added .gitbook/assets/image31-xdc-client-commands.png
1,489 changes: 1,489 additions & 0 deletions .gitbook/assets/labels

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions .gitbook/assets/local run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash
_interupt() {
echo "Shutdown $child_proc"
kill -TERM $child_proc
exit
}

trap _interupt INT TERM

touch .pwd
export $(cat .env | xargs)
Bin_NAME=XDC

WORK_DIR=$PWD
PROJECT_DIR="/home/xinfin/github/xinFinOrg/XDPoS-TestNet-Apothem"
cd $PROJECT_DIR && make all
cd $WORK_DIR

if [ ! -d ./nodes/1/$Bin_NAME/chaindata ]
then
wallet1=$(${PROJECT_DIR}/build/bin/$Bin_NAME account import --password .pwd --datadir ./nodes/1 <(echo ${PRIVATE_KEY_1}) | awk -v FS="({|})" '{print $2}')
wallet2=$(${PROJECT_DIR}/build/bin/$Bin_NAME account import --password .pwd --datadir ./nodes/2 <(echo ${PRIVATE_KEY_2}) | awk -v FS="({|})" '{print $2}')
wallet3=$(${PROJECT_DIR}/build/bin/$Bin_NAME account import --password .pwd --datadir ./nodes/3 <(echo ${PRIVATE_KEY_3}) | awk -v FS="({|})" '{print $2}')
${PROJECT_DIR}/build/bin/$Bin_NAME --datadir ./nodes/1 init ./genesis/genesis.json
${PROJECT_DIR}/build/bin/$Bin_NAME --datadir ./nodes/2 init ./genesis/genesis.json
${PROJECT_DIR}/build/bin/$Bin_NAME --datadir ./nodes/3 init ./genesis/genesis.json
else
wallet1=$(${PROJECT_DIR}/build/bin/$Bin_NAME account list --datadir ./nodes/1 | head -n 1 | awk -v FS="({|})" '{print $2}')
wallet2=$(${PROJECT_DIR}/build/bin/$Bin_NAME account list --datadir ./nodes/2 | head -n 1 | awk -v FS="({|})" '{print $2}')
wallet3=$(${PROJECT_DIR}/build/bin/$Bin_NAME account list --datadir ./nodes/3 | head -n 1 | awk -v FS="({|})" '{print $2}')
fi

VERBOSITY=3
GASPRICE="1"

echo Starting the bootnode ...
${PROJECT_DIR}/build/bin/bootnode -nodekey ./bootnode.key --addr 0.0.0.0:30301 &
child_proc=$!

echo Starting the nodes ...
${PROJECT_DIR}/build/bin/$Bin_NAME --bootnodes "enode://1c20e6b46ce608c1fe739e78611225b94e663535b74a1545b1667eac8ff75ed43216306d123306c10e043f228e42cc53cb2728655019292380313393eaaf6e23@127.0.0.1:30301" --syncmode "full" --datadir ./nodes/1 --networkid 853 --port 30303 --rpc --rpccorsdomain "*" --ws --wsaddr="0.0.0.0" --wsorigins "*" --wsport 8555 --rpcaddr 0.0.0.0 --rpcport 8545 --rpcvhosts "*" --unlock "${wallet1}" --password ./.pwd --mine --gasprice "${GASPRICE}" --targetgaslimit "420000000" --verbosity ${VERBOSITY} --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS --ethstats "BlockWorks01:xinfin_network_stats@localhost:3005" &
child_proc="$child_proc $!"
${PROJECT_DIR}/build/bin/$Bin_NAME --bootnodes "enode://1c20e6b46ce608c1fe739e78611225b94e663535b74a1545b1667eac8ff75ed43216306d123306c10e043f228e42cc53cb2728655019292380313393eaaf6e23@127.0.0.1:30301" --syncmode "full" --datadir ./nodes/2 --networkid 853 --port 30304 --rpc --rpccorsdomain "*" --ws --wsaddr="0.0.0.0" --wsorigins "*" --wsport 8556 --rpcaddr 0.0.0.0 --rpcport 8546 --rpcvhosts "*" --unlock "${wallet2}" --password ./.pwd --mine --gasprice "${GASPRICE}" --targetgaslimit "420000000" --verbosity ${VERBOSITY} --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS --ethstats "BlockWorks02:xinfin_network_stats@localhost:3005" &
child_proc="$child_proc $!"
${PROJECT_DIR}/build/bin/$Bin_NAME --bootnodes "enode://1c20e6b46ce608c1fe739e78611225b94e663535b74a1545b1667eac8ff75ed43216306d123306c10e043f228e42cc53cb2728655019292380313393eaaf6e23@127.0.0.1:30301" --syncmode "full" --datadir ./nodes/3 --networkid 853 --port 30305 --rpc --rpccorsdomain "*" --ws --wsaddr="0.0.0.0" --wsorigins "*" --wsport 8557 --rpcaddr 0.0.0.0 --rpcport 8547 --rpcvhosts "*" --unlock "${wallet3}" --password ./.pwd --mine --gasprice "${GASPRICE}" --targetgaslimit "420000000" --verbosity ${VERBOSITY} --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS --ethstats "BlockWorks03:xinfin_network_stats@localhost:3005"
Loading