-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
landoyjx
committed
Jul 23, 2020
1 parent
0a4989d
commit 849c734
Showing
19 changed files
with
391 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[calld_path] | ||
/root/call | ||
|
||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
|
||
[server] | ||
port_rpc_admin_local | ||
peer_port | ||
websocket_port | ||
|
||
[port_rpc_admin_local] | ||
port = 5050 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
|
||
[peer_port] | ||
port = 50338 | ||
ip = 0.0.0.0 | ||
protocol = peer | ||
|
||
[websocket_port] | ||
port = 5020 | ||
ip = 0.0.0.0 | ||
admin = 127.0.0.1 | ||
protocol = ws | ||
|
||
[node_db] | ||
type=RocksDB | ||
path=/root/db/rocksdb | ||
open_files=2000 | ||
filter_bits=12 | ||
cache_mb=256 | ||
file_size_mb=8 | ||
file_size_mult=2 | ||
online_delete=20480 | ||
advisory_delete=0 | ||
|
||
[database_path] | ||
/root/db | ||
|
||
[rpc_startup] | ||
{ "command": "log_level", "severity": "warning" } | ||
|
||
[error_logfile] | ||
/root/log/debug.log | ||
|
||
[debug_logfile] | ||
/root/log/debug.log | ||
|
||
[ips] | ||
172.17.0.2 50338 | ||
172.17.0.3 50338 | ||
172.17.0.4 50338 | ||
|
||
[validation_seed] | ||
ssaEWp4ZYKPBED5VwiXAJ8CPNce2t | ||
#ssKgXsde3csAfrWgqXSz9Mupcyj7N | ||
#snJdC5sAHEjmCouoczUgMo2BSvhBx | ||
|
||
[validators] | ||
n9MAbfbvjeLNxf2RNiSc8w4uUmLXWeGf75Pr4A13GZM46bZD3mmp | ||
n9JYFLUrt66DhgpqW2ggsPn5BrWNTegJ8ssoPKuKGc8GRVbi5oWQ | ||
n9K9wC1q6LyVbPumarvduHMud5TJ4EufEgEro9B1LSBXMZ5GXjWP | ||
|
||
[node_size] | ||
medium | ||
|
||
[validation_quorum] | ||
3 | ||
|
||
[ledger_history] | ||
2048 | ||
|
||
[voting] | ||
reference_fee=10 | ||
account_reserve=10000 | ||
owner_reserve=100 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# calld | ||
|
||
# use the ubuntu base image | ||
FROM ubuntu:16.04 | ||
MAINTAINER CALLCHAIN FOUNDATION <landoyjx@163.com> | ||
|
||
# make sure the package repository is up to date | ||
RUN apt-get update | ||
|
||
# install the dependencies | ||
RUN apt-get -y install git scons ctags pkg-config protobuf-compiler libprotobuf-dev libssl-dev python-software-properties nodejs libboost-all-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[calld_path] | ||
/root/build/calld | ||
|
||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
|
||
[server] | ||
port_rpc_admin_local | ||
peer_port | ||
websocket_port | ||
|
||
[port_rpc_admin_local] | ||
port = 5050 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
|
||
[peer_port] | ||
port = 50338 | ||
ip = 0.0.0.0 | ||
protocol = peer | ||
|
||
[websocket_port] | ||
port = 5020 | ||
ip = 0.0.0.0 | ||
admin = 127.0.0.1 | ||
protocol = ws | ||
|
||
[node_db] | ||
type=RocksDB | ||
path=/tmp/node0/db/rocksdb | ||
open_files=2000 | ||
filter_bits=12 | ||
cache_mb=256 | ||
file_size_mb=8 | ||
file_size_mult=2 | ||
online_delete=20480 | ||
advisory_delete=0 | ||
|
||
[database_path] | ||
/tmp/node0/db | ||
|
||
[rpc_startup] | ||
{ "command": "log_level", "severity": "warning" } | ||
|
||
[error_logfile] | ||
/tmp/node0/log/debug.log | ||
|
||
[debug_logfile] | ||
/tmp/node0/log/debug.log | ||
|
||
[ips] | ||
192.168.20.2 50338 | ||
192.168.20.3 50338 | ||
192.168.20.4 50338 | ||
|
||
[validation_seed] | ||
ssaEWp4ZYKPBED5VwiXAJ8CPNce2t | ||
#ssKgXsde3csAfrWgqXSz9Mupcyj7N | ||
#snJdC5sAHEjmCouoczUgMo2BSvhBx | ||
|
||
[validators] | ||
n9MAbfbvjeLNxf2RNiSc8w4uUmLXWeGf75Pr4A13GZM46bZD3mmp | ||
n9JYFLUrt66DhgpqW2ggsPn5BrWNTegJ8ssoPKuKGc8GRVbi5oWQ | ||
n9K9wC1q6LyVbPumarvduHMud5TJ4EufEgEro9B1LSBXMZ5GXjWP | ||
|
||
[node_size] | ||
medium | ||
|
||
[validation_quorum] | ||
3 | ||
|
||
[ledger_history] | ||
2048 | ||
|
||
[voting] | ||
reference_fee=10 | ||
account_reserve=10000 | ||
owner_reserve=100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[calld_path] | ||
/root/build/calld | ||
|
||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
|
||
[server] | ||
port_rpc_admin_local | ||
peer_port | ||
websocket_port | ||
|
||
[port_rpc_admin_local] | ||
port = 5050 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
|
||
[peer_port] | ||
port = 50338 | ||
ip = 0.0.0.0 | ||
protocol = peer | ||
|
||
[websocket_port] | ||
port = 5020 | ||
ip = 0.0.0.0 | ||
admin = 127.0.0.1 | ||
protocol = ws | ||
|
||
[node_db] | ||
type=RocksDB | ||
path=/tmp/node1/db/rocksdb | ||
open_files=2000 | ||
filter_bits=12 | ||
cache_mb=256 | ||
file_size_mb=8 | ||
file_size_mult=2 | ||
online_delete=20480 | ||
advisory_delete=0 | ||
|
||
[database_path] | ||
/tmp/node1/db | ||
|
||
[rpc_startup] | ||
{ "command": "log_level", "severity": "warning" } | ||
|
||
[error_logfile] | ||
/tmp/node1/log/debug.log | ||
|
||
[debug_logfile] | ||
/tmp/node1/log/debug.log | ||
|
||
[ips] | ||
192.168.20.2 50338 | ||
192.168.20.3 50338 | ||
192.168.20.4 50338 | ||
|
||
[validation_seed] | ||
#ssaEWp4ZYKPBED5VwiXAJ8CPNce2t | ||
ssKgXsde3csAfrWgqXSz9Mupcyj7N | ||
#snJdC5sAHEjmCouoczUgMo2BSvhBx | ||
|
||
[validators] | ||
n9MAbfbvjeLNxf2RNiSc8w4uUmLXWeGf75Pr4A13GZM46bZD3mmp | ||
n9JYFLUrt66DhgpqW2ggsPn5BrWNTegJ8ssoPKuKGc8GRVbi5oWQ | ||
n9K9wC1q6LyVbPumarvduHMud5TJ4EufEgEro9B1LSBXMZ5GXjWP | ||
|
||
[node_size] | ||
medium | ||
|
||
[validation_quorum] | ||
3 | ||
|
||
[ledger_history] | ||
2048 | ||
|
||
[voting] | ||
reference_fee=10 | ||
account_reserve=10000 | ||
owner_reserve=100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[calld_path] | ||
/root/build/calld | ||
|
||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
|
||
[server] | ||
port_rpc_admin_local | ||
peer_port | ||
websocket_port | ||
|
||
[port_rpc_admin_local] | ||
port = 5050 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
|
||
[peer_port] | ||
port = 50338 | ||
ip = 0.0.0.0 | ||
protocol = peer | ||
|
||
[websocket_port] | ||
port = 5020 | ||
ip = 0.0.0.0 | ||
admin = 127.0.0.1 | ||
protocol = ws | ||
|
||
[node_db] | ||
type=RocksDB | ||
path=/tmp/node2/db/rocksdb | ||
open_files=2000 | ||
filter_bits=12 | ||
cache_mb=256 | ||
file_size_mb=8 | ||
file_size_mult=2 | ||
online_delete=20480 | ||
advisory_delete=0 | ||
|
||
[database_path] | ||
/tmp/node2/db | ||
|
||
[rpc_startup] | ||
{ "command": "log_level", "severity": "warning" } | ||
|
||
[error_logfile] | ||
/tmp/node2/log/debug.log | ||
|
||
[debug_logfile] | ||
/tmp/node2/log/debug.log | ||
|
||
[ips] | ||
192.168.20.2 50338 | ||
192.168.20.3 50338 | ||
192.168.20.4 50338 | ||
|
||
[validation_seed] | ||
#ssaEWp4ZYKPBED5VwiXAJ8CPNce2t | ||
#ssKgXsde3csAfrWgqXSz9Mupcyj7N | ||
snJdC5sAHEjmCouoczUgMo2BSvhBx | ||
|
||
[validators] | ||
n9MAbfbvjeLNxf2RNiSc8w4uUmLXWeGf75Pr4A13GZM46bZD3mmp | ||
n9JYFLUrt66DhgpqW2ggsPn5BrWNTegJ8ssoPKuKGc8GRVbi5oWQ | ||
n9K9wC1q6LyVbPumarvduHMud5TJ4EufEgEro9B1LSBXMZ5GXjWP | ||
|
||
[node_size] | ||
medium | ||
|
||
[validation_quorum] | ||
3 | ||
|
||
[ledger_history] | ||
2048 | ||
|
||
[voting] | ||
reference_fee=10 | ||
account_reserve=10000 | ||
owner_reserve=100 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: '2' | ||
|
||
services: | ||
node0: | ||
container_name: node0 | ||
build: ./cfg/testnet/ | ||
ports: | ||
- "5050:5050" | ||
- "5020:5020" | ||
volumes: | ||
- ./:/root | ||
command: /bin/bash -c 'cd /root/ && ./build/calld --start --conf ./cfg/testnet/calld.node0.cfg -q' | ||
networks: | ||
localnet: | ||
ipv4_address: 192.168.20.2 | ||
|
||
node1: | ||
container_name: node1 | ||
build: ./cfg/testnet/ | ||
volumes: | ||
- ./:/root | ||
depends_on: | ||
- node0 | ||
command: /bin/bash -c 'cd /root/ && ./build/calld --net --conf ./cfg/testnet/calld.node1.cfg -q' | ||
networks: | ||
localnet: | ||
ipv4_address: 192.168.20.3 | ||
|
||
node2: | ||
container_name: node2 | ||
build: ./cfg/testnet/ | ||
volumes: | ||
- ./:/root | ||
depends_on: | ||
- node0 | ||
command: /bin/bash -c 'cd /root/ && ./build/calld --net --conf ./cfg/testnet/calld.node2.cfg -q' | ||
networks: | ||
localnet: | ||
ipv4_address: 192.168.20.4 | ||
|
||
networks: | ||
localnet: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- | ||
subnet: 192.168.20.0/16 |