Skip to content

Commit

Permalink
Merge branch 'main' into linea-monorepo/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsu727 authored Dec 12, 2024
2 parents c1a8050 + 8e2dbaf commit c76df61
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 39 deletions.
18 changes: 3 additions & 15 deletions docker/compose-local-dev-traces-v2.overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

services:
sequencer:
image: consensys/linea-besu-package:devnet-0d2fbde
volumes:
- ../config/common/traces-limits-besu-v2.toml:/var/lib/besu/traces-limits.toml:ro

l2-node-besu:
image: consensys/linea-besu-package:devnet-0d2fbde
volumes:
- ../config/common/traces-limits-besu-v2.toml:/var/lib/besu/traces-limits.toml:ro

linea-besu-sequencer-plugin-downloader:
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-sequencer/releases/download/v0.8.0-rc8.1/linea-sequencer-v0.8.0-rc8.1.jar", "/linea-besu-sequencer" ]

traces-node:
entrypoint: ['echo', 'forced exit as replaced by traces-node-v2']

Expand All @@ -22,11 +21,9 @@ services:
traces-node-v2:
hostname: traces-node-v2
container_name: traces-node-v2
image: consensys/linea-besu:24.12-delivery40
image: consensys/linea-besu-package:devnet-0d2fbde
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
traces-node-v2-plugin-downloader:
condition: service_completed_successfully
sequencer:
condition: service_healthy
ports:
Expand Down Expand Up @@ -56,7 +53,6 @@ services:
- ./config/traces-node-v2/traces-node-v2-config.toml:/var/lib/besu/traces-node-v2.config.toml:ro
- ./config/traces-node-v2/log4j.xml:/var/lib/besu/log4j.xml:ro
- ./config/linea-local-dev-genesis-PoA-besu.json/:/var/lib/besu/genesis.json:ro
- ../tmp/traces-node-v2/plugins:/opt/besu/plugins/
- ../tmp/local/:/data/:rw
networks:
linea:
Expand Down Expand Up @@ -86,14 +82,6 @@ services:
linea:
ipv4_address: 11.11.11.109

traces-node-v2-plugin-downloader:
image: busybox:1.36.1
# profiles: ["l2", "l2-bc"] this works locally but breakes on CI, maybe Docker compose version issue
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-tracer/releases/download/v0.8.0-rc8/linea-tracer-v0.8.0-rc8.jar", "/traces-node-v2" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/traces-node-v2/plugins:/traces-node-v2/

coordinator:
# ./gradlew :coordinator:app:shadowJar
# docker build coordinator --build-context=jar=./coordinator/app/build/libs/ -t local/linea-coordinator:latest
Expand Down
26 changes: 2 additions & 24 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ services:
sequencer:
hostname: sequencer
container_name: sequencer
image: consensys/linea-besu:${SEQUENCER_TAG:-24.12-delivery40}
image: consensys/linea-besu-package:${SEQUENCER_TAG:-mainnet-2af649e}
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
linea-besu-sequencer-plugin-downloader:
condition: service_completed_successfully
linea-besu-sequencer-finalized-tag-updater-plugin-downloader:
condition: service_completed_successfully
ports:
- "8545:8545"
- "8546:8546"
Expand Down Expand Up @@ -64,27 +59,11 @@ services:
- ./config/linea-besu-sequencer/key:/var/lib/besu/key:ro
- ./config/linea-besu-sequencer/log4j.xml:/var/lib/besu/log4j.xml:ro
- ../config/common/traces-limits-besu-v1.toml:/var/lib/besu/traces-limits.toml:ro
- ../tmp/linea-besu-sequencer/plugins:/opt/besu/plugins/
networks:
l1network:
linea:
ipv4_address: 11.11.11.101

linea-besu-sequencer-plugin-downloader:
image: busybox:1.36.1
# profiles: ["l2", "l2-bc"] this works locally but breakes on CI, maybe Docker compose version issue
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-sequencer/releases/download/v0.1.4-test38/besu-sequencer-plugins-v0.1.4-test38.jar", "/linea-besu-sequencer" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/linea-besu-sequencer/plugins:/linea-besu-sequencer/

linea-besu-sequencer-finalized-tag-updater-plugin-downloader:
image: busybox:1.36.1
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v0.0.3/finalized-tag-updater-v0.0.3.jar", "/linea-besu-sequencer" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/linea-besu-sequencer/plugins:/linea-besu-sequencer/

l2-node:
container_name: l2-node
hostname: l2-node
Expand Down Expand Up @@ -121,7 +100,7 @@ services:
l2-node-besu:
hostname: l2-node-besu
container_name: l2-node-besu
image: consensys/linea-besu:24.12-delivery40
image: consensys/linea-besu-package:${SEQUENCER_TAG:-mainnet-2af649e}
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
sequencer:
Expand Down Expand Up @@ -160,7 +139,6 @@ services:
- ./config/l2-node-besu/log4j.xml:/var/lib/besu/log4j.xml:ro
- ./config/linea-local-dev-genesis-PoA-besu.json/:/var/lib/besu/genesis.json:ro
- ../config/common/traces-limits-besu-v1.toml:/var/lib/besu/traces-limits.toml:ro
- ../tmp/linea-besu-sequencer/plugins:/opt/besu/plugins/
- ../tmp/local/:/data/:rw
networks:
l1network:
Expand Down
1 change: 1 addition & 0 deletions docker/config/l2-node-besu/l2-node-besu-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metrics-port=9545
data-storage-format="BONSAI"

# plugins
plugins=["LineaEstimateGasEndpointPlugin","L1FinalizationTagUpdaterPlugin","LineaExtraDataPlugin", "LineaTransactionPoolValidatorPlugin"]
plugin-linea-module-limit-file-path="/var/lib/besu/traces-limits.toml"
plugin-linea-deny-list-path="/var/lib/besu/deny-list.txt"
plugin-linea-l1l2-bridge-contract="0xe537D669CA013d86EBeF1D64e40fC74CADC91987"
Expand Down
1 change: 1 addition & 0 deletions docker/config/linea-besu-sequencer/sequencer.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ api-gas-and-priority-fee-upper-bound-coefficient=300
poa-block-txs-selection-max-time=1000

# plugins
plugins=["LineaEstimateGasEndpointPlugin","L1FinalizationTagUpdaterPlugin","LineaExtraDataPlugin", "LineaTransactionPoolValidatorPlugin"]
plugin-linea-module-limit-file-path="/var/lib/besu/traces-limits.toml"
plugin-linea-deny-list-path="/var/lib/besu/deny-list.txt"
plugin-linea-estimate-gas-compatibility-mode-enabled=false
Expand Down
1 change: 1 addition & 0 deletions docker/config/traces-node-v2/traces-node-v2-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metrics-port=9545
data-storage-format="BONSAI"

# plugins
plugins=["TracerReadinessPlugin","TracesEndpointServicePlugin","LineCountsEndpointServicePlugin","CaptureEndpointServicePlugin"]
plugin-linea-conflated-trace-generation-traces-output-path="/data/traces/v2/conflated"
plugin-linea-rpc-concurrent-requests-limit=1
plugin-linea-tracer-readiness-server-host="0.0.0.0"
Expand Down
19 changes: 19 additions & 0 deletions docker/linea-mainnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,22 @@ services:
- ./besu-genesis.json:/var/lib/besu/genesis.json:ro
- ../config/linea-besu-sequencer/log4j.xml:/var/lib/besu/log4j.xml
- ./static-nodes.json:/var/lib/besu/static-nodes.json

nethermind-node:
hostname: nethermind-node
container_name: nethermind-node
image: nethermind/nethermind:1.30.0
restart: unless-stopped
command:
--datadir /nethermind/nethermind_db
--config linea-mainnet
--JsonRpc.Enabled=true
--JsonRpc.Host=0.0.0.0
--JsonRpc.Port=8545
--Metrics.Enabled=true
--Metrics.ExposePort=8008
ports:
- 8545:8545
- 8008:8008
volumes:
- linea-mainnet:/nethermind/nethermind_db
19 changes: 19 additions & 0 deletions docker/linea-sepolia/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,22 @@ services:
- ./besu-genesis.json:/var/lib/besu/genesis.json:ro
- ../config/linea-besu-sequencer/log4j.xml:/var/lib/besu/log4j.xml
- ./static-nodes.json:/var/lib/besu/static-nodes.json

nethermind-node:
hostname: nethermind-node
container_name: nethermind-node
image: nethermind/nethermind:1.30.0
restart: unless-stopped
command:
--datadir /nethermind/nethermind_db
--config linea-sepolia
--JsonRpc.Enabled=true
--JsonRpc.Host=0.0.0.0
--JsonRpc.Port=8545
--Metrics.Enabled=true
--Metrics.ExposePort=8008
ports:
- 8545:8545
- 8008:8008
volumes:
- linea-sepolia:/nethermind/nethermind_db
1 change: 1 addition & 0 deletions docs/audits.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [ZKSecurity.xyz - June 2024 - Wizard's crypto & math](https://www.zksecurity.xyz/reports/consensys-wizard-crypto-math)
* [OpenZeppelin - June 2024 - gnark PLONK prover and verifier](https://blog.openzeppelin.com/linea-prover-audit)
* [LeastAuthority - September 2024 - gnark general and GKR](https://github.com/Consensys/gnark/blob/53ce9b74e7ab372aa7358f1eac7fe3d689743f5f/audits/2024-09%20-%20Least%20Authority%20-%20arithm%20and%20GKR.pdf)
* [LeastAuthority - November 2024 - Linea zkEVM](https://github.com/Consensys/gnark/blob/d9cbd38409edb5cfdbf9daa9dba841ad432feff9/audits/2024-11%20-%20Least%20Authority%20-%20Linea%20zkEVM.pdf)
---
**2023**
* [Sigma Prime - May 2023 - gnark-crypto KZG (contracted by Ethereum Foundation)](https://github.com/Consensys/gnark/blob/53ce9b74e7ab372aa7358f1eac7fe3d689743f5f/audits/2024-05%20-%20Sigma%20Prime%20-%20kzg.pdf)
Expand Down

0 comments on commit c76df61

Please sign in to comment.