4 Commits

Author SHA1 Message Date
fa4f00a62d Merge pull request #40 from matter-labs/consensus-debug-port
feat: Consensus debug config
2025-04-25 12:04:08 +02:00
f3ce6ce204 feat: Consensus debug config 2025-04-25 11:51:05 +02:00
4bd3805af1 Merge pull request #38 from matter-labs/docs
Some checks failed
Release / Release (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Ansible lint (push) Has been cancelled
chore(docs): Update link to EN mainnet DB backup
2024-12-16 17:45:26 +07:00
8006ed9328 chore(docs): Update link to EN mainnet backup 2024-12-16 17:38:02 +07:00
3 changed files with 7 additions and 2 deletions

View File

@ -99,10 +99,10 @@ Basic auth secret can be generated by `htpasswd` and `sed` for interpolation:
2. Prepare the latest database backup on your host. you can download it from our public GCS buckets: 2. Prepare the latest database backup on your host. you can download it from our public GCS buckets:
Skip this step if you are recovering from a snapshot! Skip this step if you are recovering from a snapshot!
* [Era Mainnet latest dump](https://storage.googleapis.com/zksync-era-mainnet-external-node-backups/external_node_latest.pgdump) * [Era Mainnet latest dump](https://en-backups.matterlabs.dev/)
* [Era Sepolia Testnet latest dump](https://storage.googleapis.com/zksync-era-testnet-sepolia-external-node-backups/external_node_latest.pgdump) * [Era Sepolia Testnet latest dump](https://storage.googleapis.com/zksync-era-testnet-sepolia-external-node-backups/external_node_latest.pgdump)
Downloaded dump file should be placed into `{{ storage_directory }}/pg_backups` directory (`/usr/src/en/pg_backups` by default) Downloaded dump, if needed, should be unarchived and named `external_node_latest.pgdump`. File should be placed into `{{ storage_directory }}/pg_backups` directory (`/usr/src/en/pg_backups` by default).
3. **OPTIONAL**: If you already have running node, you can copy its tree and state directory to a new host's `{{ storage_directory }}/db`. (`/usr/src/en/db` by default) 3. **OPTIONAL**: If you already have running node, you can copy its tree and state directory to a new host's `{{ storage_directory }}/db`. (`/usr/src/en/db` by default)
Skip this step if you are recovering from a snapshot! Skip this step if you are recovering from a snapshot!

View File

@ -88,6 +88,8 @@ snapshots_bucket_base_url: ""
enable_consensus: false enable_consensus: false
consensus_secrets_file: "" consensus_secrets_file: ""
consensus_port: 3054 consensus_port: 3054
consensus_debug_port_enabled: false
consensus_debug_port: 5000
consensus_outbound: [] consensus_outbound: []
# External Node and database options # External Node and database options

View File

@ -2,6 +2,9 @@ server_addr: '0.0.0.0:3054'
public_addr: '{{ ansible_default_ipv4.address }}:{{ consensus_port }}' public_addr: '{{ ansible_default_ipv4.address }}:{{ consensus_port }}'
max_payload_size: 5000000 max_payload_size: 5000000
gossip_dynamic_inbound_limit: 200 gossip_dynamic_inbound_limit: 200
{% if consensus_debug_port_enabled %}
debug_page_addr: "0.0.0.0:{{ consensus_debug_port }}"
{% endif %}
rpc_config: rpc_config:
get_block_rate: get_block_rate:
burst: 5 burst: 5