BVC-Chain Node Setup
1 Environmental Requirements
Operating system:
Linux ubuntu 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Compilation environment:
gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)
Resource restrictions:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31449
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31449
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2 Download Software
Download the bvcadt.tar.gz file. After decompression, the following files are included:
bvcadtd
bvcadt-core.cfg
validators.txt
start.sh
libprotobuf.so.8
libstdc++.so.6
3 Installation Deployment
3.1 Deploy the executable directory
mkdir /usr/local/bvcadt
mv test/bvcadtd /usr/local/bvcadt/
mv test/start.sh /usr/local/bvcadt/
3.2 Deployment configuration file directory
mv test/bvcadt-core.cfg /usr/local/bvcadt
mv test/validators.txt /usr/local/bvcadt
3.3 Deploy dependent library file directory
mv test/libprotobuf.so.8 /usr/lib/x86_64-linux-gnu/libprotobuf.so.8
mv test/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
3.4 Inform the node IP
Contact the BVC-Chain service provider (service@bvcadt.com) and provide the node IP to apply to join the BVC-Chain test chain.
4 Script Starts Running
4.1 Start(Test network)
./start.sh
Execute the startup script, your node will synchronize the historical ledger information from other nodes of the BVC-Chain network.
4.2 Verify if the startup is successful
Execute the following command:
./bvcadtd peers
Return the following response message:
{
"id" : 1,
"result" : {
"cluster" : {},
"peers" : [
{
"address" : "10.0.11.34:41718",
"complete_ledgers" : "1 - 1393550",
"inbound" : true,
"latency" : 0,
"load" : 27,
"public_key" : "n9L4wHDc7RLjNaPZgzMvNFrGbFYQWo9SEtULer5RVatDTXReAJxe",
"uptime" : 14000900,
"version" : "bvcadtd-0.0.3"
}
}
Return data has information on other BVC-Chain Core node servers, indicating that the blockchain public service network has been successfully connected.
5 Test network transferred to official network
Step 1: Stop the service
./bvcadtd stop
Step 2: If the test network node is upgraded directly to a official network node, the database synchronized from local network needs to be deleted first.
rm –rf /usr/local/bvcadt/db
Step 3: Contact BVC-Chain Service Provider (service@bvcadt.com) to obtain and update the official network configuration file.
mv official/bvcadt-core.cfg /usr/local/bvcadt/
mv official/validators.txt /usr/local/bvcadt/
Step 4: Inform the BVC-Chain service provider of the official network node IP and apply to join the BVC-Chain official website.
Step 5: Execute the startup script follow the "4 Script Starts Running" section.
6 Interface instruction
Refer to the JSON-RPC API section.