mirror of
https://github.com/boolnetwork/mining-scripts.git
synced 2026-02-21 17:37:20 +08:00
update toml and docker-compose
This commit is contained in:
parent
345d280d78
commit
b48e35d08b
@ -1,8 +0,0 @@
|
|||||||
port = 18710
|
|
||||||
num_workers = 20
|
|
||||||
db_path = "/bnk/data"
|
|
||||||
token = ""
|
|
||||||
|
|
||||||
[options]
|
|
||||||
create_if_missing = true
|
|
||||||
atomic_flush = true
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
version = 1
|
|
||||||
attestation_style = 1
|
|
||||||
port = 18730
|
|
||||||
executors = 2
|
|
||||||
db_url = "http://10.0.0.5:18710"
|
|
||||||
msg_pool_url = "http://10.0.0.5:18720"
|
|
||||||
db_token = ""
|
|
||||||
cert_path = "../servers/test-ca/ca.cert"
|
|
||||||
round_time_limit = 60
|
|
||||||
clear_msg_interval = 180
|
|
||||||
time_check_interval = 30
|
|
||||||
retry_interval = 10
|
|
||||||
retry_times = 2
|
|
||||||
max_conn = 250
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
port = 18740
|
|
||||||
database_url = "/bnk/data/sqlite.db"
|
|
||||||
|
|
||||||
[default_watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 30000
|
|
||||||
max_step = 2000
|
|
||||||
begin_height = 0
|
|
||||||
@ -1,22 +1,27 @@
|
|||||||
# local msg_pool server port.
|
node_ws_url = "ws://test-rpc-node-ws.bool.network:80"
|
||||||
msg_pool_port = 18720
|
# local node_call server port.
|
||||||
# local node url for watcher
|
node_call_port = 8720
|
||||||
node_ws_url = "ws://10.0.0.5:9945"
|
|
||||||
# local database url for data storage.
|
|
||||||
db_url = "http://10.0.0.5:18710"
|
|
||||||
# local database token for database usage.
|
|
||||||
db_token = ""
|
|
||||||
# local sgx key server url
|
|
||||||
key_server_url = "https://10.0.0.5:18730"
|
|
||||||
# used to generate LocalKeyStore, used to get AccountId in substrate.
|
# used to generate LocalKeyStore, used to get AccountId in substrate.
|
||||||
identity = "0x0000000000000000000000000000000000000000000000000000000000000000"
|
identity = "0x0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
# seconds per block
|
# database path
|
||||||
block_time = 3
|
db_path = "/bnk/data"
|
||||||
# blocks per epoch
|
# tokio console port
|
||||||
epoch_duration = 200
|
console_port = 5555
|
||||||
|
# database start option
|
||||||
|
[db_option]
|
||||||
|
create_if_missing = true
|
||||||
|
atomic_flush = true
|
||||||
|
|
||||||
[network_config]
|
[network_config]
|
||||||
port = 48700
|
port = 38700
|
||||||
boot_nodes = []
|
boot_nodes = ["/ip4/40.117.78.134/tcp/38700/p2p/12D3KooWRCdgTk5C6d4txvmfJbGKR2SFpiF5HgbpCVEEUUQGWR1c"]
|
||||||
share_peer_interval = 30
|
share_peer_interval = 30
|
||||||
only_global_ips = true
|
only_global_ips = true
|
||||||
|
|
||||||
|
[key_server_config]
|
||||||
|
version = 7
|
||||||
|
attestation_style = 1
|
||||||
|
seal_policy = "MRSIGNER"
|
||||||
|
exe_policy = { Multiply = { executors = 8 } }
|
||||||
|
round_time_limit = 60
|
||||||
|
clear_msg_interval = 180
|
||||||
@ -1,39 +1,14 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
bnk-database:
|
bnk-occlum-keyring:
|
||||||
image: boolnetwork/bnk-database:latest
|
image: boolnetwork/bnk-occlum-keyring-epid:v0.5.2
|
||||||
network_mode: "host"
|
|
||||||
# ports:
|
|
||||||
# - "8710:8710"
|
|
||||||
environment:
|
|
||||||
RUST_LOG: info
|
|
||||||
volumes:
|
|
||||||
- ./configs/db.toml:/bnk/db.toml
|
|
||||||
- ./data:/bnk/data
|
|
||||||
|
|
||||||
bnk-watcher:
|
|
||||||
image: boolnetwork/bnk-watcher:latest
|
|
||||||
network_mode: "host"
|
|
||||||
# ports:
|
|
||||||
# - "8720:8720"
|
|
||||||
environment:
|
|
||||||
RUST_LOG: info
|
|
||||||
volumes:
|
|
||||||
- ./configs/watcher.toml:/bnk/watcher.toml
|
|
||||||
depends_on:
|
|
||||||
- bnk-database
|
|
||||||
|
|
||||||
bnk-sgx-key-server:
|
|
||||||
image: boolnetwork/bnk-sgx-key-server:latest
|
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# ports:
|
# ports:
|
||||||
# - "8730:8730"
|
# - "8730:8730"
|
||||||
environment:
|
environment:
|
||||||
RUST_LOG: info
|
RUST_LOG: info
|
||||||
volumes:
|
volumes:
|
||||||
- ./configs/key.toml:/bnk/key.toml
|
- ./configs/watcher.toml:/bnk/watcher.toml
|
||||||
devices:
|
devices:
|
||||||
- /dev/sgx/enclave
|
- /dev/sgx/enclave
|
||||||
- /dev/sgx/provision
|
- /dev/sgx/provision
|
||||||
depends_on:
|
|
||||||
- bnk-watcher
|
|
||||||
Loading…
Reference in New Issue
Block a user