diff --git a/configs/db.toml b/configs/db.toml index 071a020..dd6d42b 100644 --- a/configs/db.toml +++ b/configs/db.toml @@ -1,4 +1,4 @@ -port = 8710 +port = 18710 num_workers = 20 db_path = "/bnk/data" token = "" diff --git a/configs/key.toml b/configs/key.toml index 4642982..4ab2cf2 100644 --- a/configs/key.toml +++ b/configs/key.toml @@ -1,8 +1,10 @@ version = 1 -port = 8730 -executors = 2 -db_url = "http://127.0.0.1:8710" -msg_pool_url = "http://127.0.0.1:8720" +#EPID=1 DCAP=2 +attestation_style = 1 +port = 18730 +executors = 8 +db_url = "http://localhost:18710" +msg_pool_url = "http://localhost:18720" db_token = "" cert_path = "../servers/test-ca/ca.cert" round_time_limit = 60 diff --git a/configs/monitor.toml b/configs/monitor.toml index 1943d7b..08eb198 100644 --- a/configs/monitor.toml +++ b/configs/monitor.toml @@ -1,7 +1,5 @@ -port = 8740 +port = 18740 database_url = "/bnk/data/sqlite.db" -notified_url = "http://localhost:8750/event" - [[endpoints]] chain_id = 5 name = "goerli" @@ -17,84 +15,6 @@ chain_id = 420 name = "optimism" 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] enabled = true polling_interval = 30000 diff --git a/configs/sgx_default_qcnl.conf b/configs/sgx_default_qcnl.conf new file mode 100644 index 0000000..51956a0 --- /dev/null +++ b/configs/sgx_default_qcnl.conf @@ -0,0 +1,4 @@ +#PCCSserveraddress +PCCS_URL=https://172.16.192.1:8081/sgx/certification/v3/ +#ToacceptinsecureHTTPScert,setthisoptiontoFALSE +USE_SECURE_CERT=FALSE \ No newline at end of file diff --git a/configs/watcher.toml b/configs/watcher.toml index 9643fd1..932d73b 100644 --- a/configs/watcher.toml +++ b/configs/watcher.toml @@ -1,17 +1,15 @@ # local msg_pool server port. -msg_pool_port = 8720 +msg_pool_port = 18720 # 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. -db_url = "http://127.0.0.1:8710" +db_url = "http://localhost:18710" # local database token for database usage. db_token = "" # 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. identity = "0x0000000000000000000000000000000000000000000000000000000000000000" -# Notifies relayer of the event -relayer_server_url = "http://localhost:8750" # seconds per block block_time = 3 # blocks per epoch diff --git a/docker-compose.yml b/docker-compose.yml index c8bf647..9a56b2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,25 +1,8 @@ version: "3" 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: image: boolnetwork/bnk-database:latest network_mode: "host" - # ports: - # - "8710:8710" environment: RUST_LOG: info volumes: @@ -29,8 +12,6 @@ services: bnk-watcher: image: boolnetwork/bnk-watcher:latest network_mode: "host" - # ports: - # - "8720:8720" environment: RUST_LOG: info volumes: @@ -41,37 +22,13 @@ services: bnk-sgx-key-server: image: boolnetwork/bnk-sgx-key-server:latest network_mode: "host" - # ports: - # - "8730:8730" environment: RUST_LOG: info volumes: - ./configs/key.toml:/bnk/key.toml + - ./configs/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf devices: - /dev/sgx/enclave - /dev/sgx/provision depends_on: - - 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 + - bnk-watcher \ No newline at end of file