From bbbe7bf7719efbfc9e5483867ce0a398108bc1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erce=20Can=20Bekt=C3=BCre?= <47954181+ercecan@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:29:12 +0300 Subject: [PATCH] Fix hive (#1263) * Fix configs * Remove publish mock block from docker * Update port for hive * Rename config in hive --- ...nfig.toml => sequencer_rollup_config.toml} | 7 ++----- resources/hive/Dockerfile | 3 ++- resources/hive/hive_publish_block.sh | 21 ------------------- 3 files changed, 4 insertions(+), 27 deletions(-) rename resources/configs/mock-dockerized/{rollup_config.toml => sequencer_rollup_config.toml} (84%) delete mode 100755 resources/hive/hive_publish_block.sh diff --git a/resources/configs/mock-dockerized/rollup_config.toml b/resources/configs/mock-dockerized/sequencer_rollup_config.toml similarity index 84% rename from resources/configs/mock-dockerized/rollup_config.toml rename to resources/configs/mock-dockerized/sequencer_rollup_config.toml index e3e26ba9f..94762cb30 100644 --- a/resources/configs/mock-dockerized/rollup_config.toml +++ b/resources/configs/mock-dockerized/sequencer_rollup_config.toml @@ -9,16 +9,13 @@ db_path = "resources/dbs/da-db" [storage] # The path to the rollup's data directory. Paths that do not begin with `/` are interpreted as relative paths. -path = "resources/dbs/full-node-db" +path = "resources/dbs/sequencer-db" db_max_open_files = 5000 [rpc] # the host and port to bind the rpc server for bind_host = "0.0.0.0" bind_port = 8545 +max_connections = 10000 enable_subscriptions = true max_subscriptions_per_connection = 100 - -[runner] -sequencer_client_url = "http://0.0.0.0:8545" -include_tx_body = false diff --git a/resources/hive/Dockerfile b/resources/hive/Dockerfile index 393804061..4200d6924 100644 --- a/resources/hive/Dockerfile +++ b/resources/hive/Dockerfile @@ -18,4 +18,5 @@ RUN SKIP_GUEST_BUILD=1 cargo build --release --bin citrea EXPOSE 8545 -ENTRYPOINT ["sh", "-c", "./target/release/citrea --genesis-paths ./resources/genesis/mock-dockerized --rollup-config-path ./configs/mock-dockerized/rollup_config.toml --sequencer-config-path ./configs/mock-dockerized/sequencer_config.toml"] +ENTRYPOINT ["sh", "-c", "./target/release/citrea --genesis-paths ./resources/genesis/mock-dockerized --rollup-config-path ./resources/configs/mock-dockerized/sequencer_rollup_config.toml --sequencer-config-path ./resources/configs/mock-dockerized/sequencer_config.toml"] + diff --git a/resources/hive/hive_publish_block.sh b/resources/hive/hive_publish_block.sh deleted file mode 100755 index ff29421cf..000000000 --- a/resources/hive/hive_publish_block.sh +++ /dev/null @@ -1,21 +0,0 @@ -# script to auto send 'citrea_testPublishBlock' requests every 2 seconds -# TODO: read sequencer url from .toml files - -SLEEP_DURATION=2 -SEQUENCER_URL='http://0.0.0.0:8545' - -echo "Publishing blocks every 2 seconds" -echo "Sequencer URL: $SEQUENCER_URL" - -while true; do - curl -s -o /dev/null --location $SEQUENCER_URL \ - --header 'Content-Type: application/json' \ - --data '{ - "jsonrpc": "2.0", - "method": "citrea_testPublishBlock", - "params": [], - "id": 1 - }' - - sleep $SLEEP_DURATION -done