fix(docker): Ensure op-node and op-geth connect successfully #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Привет, команда!
Этот PR содержит необходимые исправления конфигурации Docker Compose и переменных окружения для обеспечения успешного запуска и взаимодействия нод
op-nodeиexecution-client(op-geth).🛠️ Что исправлено:
jwtsecretбыл унифицирован вdocker-compose.ymlи в переменной окруженияOP_NODE_L2_ENGINE_AUTHв.env.sepolia(изменено с/shared/jwt.hexна/jwtsecret). Это устранило ошибку401 Unauthorizedпри попыткеop-nodeподключиться к Engine API Geth..env.sepoliaпеременнаяOP_NODE_L1_ETH_RPCбыла изменена на URL-адрес стандартного JSON-RPC (вместо Beacon API), что устранило ошибку400 Bad Request: invalid Content-Type header.commandвop-node, которая мешала корректному запуску образа.depends_onвop-nodeбыла изменена сservice_healthy(который вызывал таймаут) на более простойservice_started.🟢 Результат:
Оба контейнера запускаются успешно и сразу начинают работать:
op-nodeуспешно подключается к L1 Sepolia и аутентифицируется с локальнымexecution-client, начиная процесс синхронизации L2-цепочки Unichain.