mirror of
https://github.com/boolnetwork/mining-scripts.git
synced 2026-02-21 16:27:21 +08:00
update conifg & support dcap
This commit is contained in:
parent
6a97315cb7
commit
b4f7c45a3a
@ -1,4 +1,4 @@
|
|||||||
port = 8710
|
port = 18710
|
||||||
num_workers = 20
|
num_workers = 20
|
||||||
db_path = "/bnk/data"
|
db_path = "/bnk/data"
|
||||||
token = ""
|
token = ""
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
version = 1
|
version = 1
|
||||||
port = 8730
|
#EPID=1 DCAP=2
|
||||||
executors = 2
|
attestation_style = 1
|
||||||
db_url = "http://127.0.0.1:8710"
|
port = 18730
|
||||||
msg_pool_url = "http://127.0.0.1:8720"
|
executors = 8
|
||||||
|
db_url = "http://localhost:18710"
|
||||||
|
msg_pool_url = "http://localhost:18720"
|
||||||
db_token = ""
|
db_token = ""
|
||||||
cert_path = "../servers/test-ca/ca.cert"
|
cert_path = "../servers/test-ca/ca.cert"
|
||||||
round_time_limit = 60
|
round_time_limit = 60
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
port = 8740
|
port = 18740
|
||||||
database_url = "/bnk/data/sqlite.db"
|
database_url = "/bnk/data/sqlite.db"
|
||||||
notified_url = "http://localhost:8750/event"
|
|
||||||
|
|
||||||
[[endpoints]]
|
[[endpoints]]
|
||||||
chain_id = 5
|
chain_id = 5
|
||||||
name = "goerli"
|
name = "goerli"
|
||||||
@ -17,84 +15,6 @@ chain_id = 420
|
|||||||
name = "optimism"
|
name = "optimism"
|
||||||
http_url = " https://goerli.optimism.io"
|
http_url = " https://goerli.optimism.io"
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "broadcaster"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "mumbai"
|
|
||||||
address = "0x58F7616FF46De73197C6f79049f6387954223451"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 29177100
|
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "factory"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "mumbai"
|
|
||||||
address = "0x4d0c3b2bb15a114C6cBfa531BdeF9050809658B5"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 29177100
|
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "broadcaster"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "optimism"
|
|
||||||
address = "0x97543Bb9ab8BA62Aa60F596f84792f5766dd2765"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 2723200
|
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "factory"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "optimism"
|
|
||||||
address = "0x120F373F6b843A49D9103593a691F07571f6B11E"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 2723200
|
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "broadcaster"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "goerli"
|
|
||||||
address = "0xf05467484fF502A94B7Aeb704A368B33B52c529c"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 7961800
|
|
||||||
|
|
||||||
[[sources]]
|
|
||||||
named = "factory"
|
|
||||||
tag = ""
|
|
||||||
kind = "Contract"
|
|
||||||
backend = "goerli"
|
|
||||||
address = "0x914FfCA8E10776a7d92305BCE2Be23B4f682Ab04"
|
|
||||||
|
|
||||||
[sources.watcher]
|
|
||||||
enabled = true
|
|
||||||
polling_interval = 20000
|
|
||||||
max_step = 1000
|
|
||||||
begin_height = 7961800
|
|
||||||
|
|
||||||
[default_watcher]
|
[default_watcher]
|
||||||
enabled = true
|
enabled = true
|
||||||
polling_interval = 30000
|
polling_interval = 30000
|
||||||
|
|||||||
4
configs/sgx_default_qcnl.conf
Normal file
4
configs/sgx_default_qcnl.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#PCCSserveraddress
|
||||||
|
PCCS_URL=https://172.16.192.1:8081/sgx/certification/v3/
|
||||||
|
#ToacceptinsecureHTTPScert,setthisoptiontoFALSE
|
||||||
|
USE_SECURE_CERT=FALSE
|
||||||
@ -1,17 +1,15 @@
|
|||||||
# local msg_pool server port.
|
# local msg_pool server port.
|
||||||
msg_pool_port = 8720
|
msg_pool_port = 18720
|
||||||
# local node url for watcher
|
# local node url for watcher
|
||||||
node_ws_url = "ws://127.0.0.1:9944"
|
node_ws_url = "ws://localhost:9944"
|
||||||
# local database url for data storage.
|
# local database url for data storage.
|
||||||
db_url = "http://127.0.0.1:8710"
|
db_url = "http://localhost:18710"
|
||||||
# local database token for database usage.
|
# local database token for database usage.
|
||||||
db_token = ""
|
db_token = ""
|
||||||
# local sgx key server url
|
# local sgx key server url
|
||||||
key_server_url = "https://localhost:8730"
|
key_server_url = "https://localhost: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"
|
||||||
# Notifies relayer of the event
|
|
||||||
relayer_server_url = "http://localhost:8750"
|
|
||||||
# seconds per block
|
# seconds per block
|
||||||
block_time = 3
|
block_time = 3
|
||||||
# blocks per epoch
|
# blocks per epoch
|
||||||
|
|||||||
@ -1,25 +1,8 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
bnk-node:
|
|
||||||
image: boolnetwork/bnk-node:latest
|
|
||||||
ports:
|
|
||||||
- "9933:9933"
|
|
||||||
- "9944:9944"
|
|
||||||
- "30333:30333"
|
|
||||||
environment:
|
|
||||||
RUST_LOG: info
|
|
||||||
volumes:
|
|
||||||
- ./node-data:/data"
|
|
||||||
command: |
|
|
||||||
--unsafe-rpc-external
|
|
||||||
--unsafe-ws-external
|
|
||||||
--rpc-cors all
|
|
||||||
|
|
||||||
bnk-database:
|
bnk-database:
|
||||||
image: boolnetwork/bnk-database:latest
|
image: boolnetwork/bnk-database:latest
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# ports:
|
|
||||||
# - "8710:8710"
|
|
||||||
environment:
|
environment:
|
||||||
RUST_LOG: info
|
RUST_LOG: info
|
||||||
volumes:
|
volumes:
|
||||||
@ -29,8 +12,6 @@ services:
|
|||||||
bnk-watcher:
|
bnk-watcher:
|
||||||
image: boolnetwork/bnk-watcher:latest
|
image: boolnetwork/bnk-watcher:latest
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# ports:
|
|
||||||
# - "8720:8720"
|
|
||||||
environment:
|
environment:
|
||||||
RUST_LOG: info
|
RUST_LOG: info
|
||||||
volumes:
|
volumes:
|
||||||
@ -41,37 +22,13 @@ services:
|
|||||||
bnk-sgx-key-server:
|
bnk-sgx-key-server:
|
||||||
image: boolnetwork/bnk-sgx-key-server:latest
|
image: boolnetwork/bnk-sgx-key-server:latest
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# ports:
|
|
||||||
# - "8730:8730"
|
|
||||||
environment:
|
environment:
|
||||||
RUST_LOG: info
|
RUST_LOG: info
|
||||||
volumes:
|
volumes:
|
||||||
- ./configs/key.toml:/bnk/key.toml
|
- ./configs/key.toml:/bnk/key.toml
|
||||||
|
- ./configs/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf
|
||||||
devices:
|
devices:
|
||||||
- /dev/sgx/enclave
|
- /dev/sgx/enclave
|
||||||
- /dev/sgx/provision
|
- /dev/sgx/provision
|
||||||
depends_on:
|
depends_on:
|
||||||
- bnk-watcher
|
- bnk-watcher
|
||||||
|
|
||||||
bnk-monitor:
|
|
||||||
image: boolnetwork/bnk-monitor:latest
|
|
||||||
network_mode: "host"
|
|
||||||
# ports:
|
|
||||||
# - "8740:8740"
|
|
||||||
environment:
|
|
||||||
RUST_LOG: warn,bnk_monitor=info
|
|
||||||
volumes:
|
|
||||||
- ./configs/monitor.toml:/bnk/monitor.toml
|
|
||||||
- ./data/:/bnk/data
|
|
||||||
|
|
||||||
bnk-relayer:
|
|
||||||
image: boolnetwork/bnk-relayer:latest
|
|
||||||
network_mode: "host"
|
|
||||||
# ports:
|
|
||||||
# - "8750:8750"
|
|
||||||
environment:
|
|
||||||
RUST_LOG: debug
|
|
||||||
command: |
|
|
||||||
-w=http://127.0.0.1:8720
|
|
||||||
-m=http://127.0.0.1:8740
|
|
||||||
-p=8750
|
|
||||||
Loading…
Reference in New Issue
Block a user