Skip to content

Commit b275d16

Browse files
Merge branch 'main' of github.com:Consensys/linea-monorepo into feat/mimc-connect-codehash-2
2 parents 81930ab + 05d3ee2 commit b275d16

File tree

180 files changed

+9233
-2194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+9233
-2194
lines changed

.github/workflows/coordinator-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN_RELEASE_ACCESS }}
2727
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
2828
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2930
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-large
3031
name: Coordinator tests
3132
steps:
@@ -76,6 +77,7 @@ jobs:
7677
path: |
7778
${{ github.workspace }}/build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
7879
- name: Upload coverage to Codecov
80+
if: ${{ env.CODECOV_TOKEN != '' }}
7981
uses: codecov/codecov-action@v5
8082
with:
8183
fail_ci_if_error: true

.github/workflows/prover-testing.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
name: Prover testing CI
22

3-
on:
4-
workflow_call:
5-
secrets:
6-
SLACK_WEBHOOK_CI_PROVER_FAIL:
7-
required: true
8-
SLACK_WEBHOOK_CI_PROVER_SUCCESS:
9-
required: true
10-
3+
on: workflow_call
114
env:
125
GOPROXY: "https://proxy.golang.org"
136

@@ -93,50 +86,3 @@ jobs:
9386
if: matrix.go-version == '1.20.x'
9487
run: |
9588
go test -p=1 -tags=nocorset,fuzzlight -timeout=30m -short -race ./...
96-
97-
slack-workflow-status-failed:
98-
if: failure()
99-
name: Prover notify slack
100-
needs:
101-
- staticcheck
102-
- test
103-
runs-on: [self-hosted, ubuntu-20.04, X64, small]
104-
steps:
105-
- name: Notify slack -- workflow failed
106-
id: slack
107-
uses: slackapi/slack-github-action@v1.23.0
108-
with:
109-
payload: |
110-
{
111-
"actor": "${{ github.actor }}",
112-
"repo": "${{ github.repository }}",
113-
"status": "FAIL",
114-
"title": "${{ github.event.pull_request.title }}",
115-
"pr": "${{ github.event.pull_request.head.ref }}"
116-
}
117-
env:
118-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CI_PROVER_FAIL }}
119-
120-
slack-workflow-status-success:
121-
if: success()
122-
name: Prover notify slack
123-
needs:
124-
- staticcheck
125-
- test
126-
runs-on: [self-hosted, ubuntu-20.04, X64, small]
127-
steps:
128-
- name: Notify slack -- workflow succeeded
129-
id: slack
130-
uses: slackapi/slack-github-action@v1.23.0
131-
with:
132-
payload: |
133-
{
134-
"actor": "${{ github.actor }}",
135-
"repo": "${{ github.repository }}",
136-
"status": "SUCCESS",
137-
"title": "${{ github.event.pull_request.title }}",
138-
"pr": "${{ github.event.pull_request.head.ref }}"
139-
}
140-
env:
141-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CI_PROVER_SUCCESS }}
142-

.github/workflows/run-smc-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
run-contract-tests:
3232
runs-on: [self-hosted, ubuntu-20.04, X64, small]
3333
name: Run smart contracts tests
34+
env:
35+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3436
steps:
3537
- name: Checkout
3638
uses: actions/checkout@v4
@@ -69,6 +71,7 @@ jobs:
6971
run: pnpm -F contracts run coverage
7072

7173
- name: Upload coverage to Codecov
74+
if: ${{ env.CODECOV_TOKEN != '' }}
7275
uses: codecov/codecov-action@v5
7376
with:
7477
fail_ci_if_error: true

Makefile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ deploy-l2-evm-opcode-tester:
158158
RPC_URL=http:\\localhost:8545/ \
159159
npx ts-node local-deployments-artifacts/deployLondonEvmTestingFramework.ts
160160

161-
execute-all-opcodes:
161+
162+
evm-opcode-tester-execute-all-opcodes: OPCODE_TEST_CONTRACT_ADDRESS:=0x997FC3aF1F193Cbdc013060076c67A13e218980e
163+
evm-opcode-tester-execute-all-opcodes:
162164
# WARNING: FOR LOCAL DEV ONLY - DO NOT REUSE THESE KEYS ELSEWHERE
163165
cd contracts/; \
164-
OPCODE_TEST_CONTRACT_ADDRESS=0x997FC3aF1F193Cbdc013060076c67A13e218980e \
166+
OPCODE_TEST_CONTRACT_ADDRESS=$(OPCODE_TEST_CONTRACT_ADDRESS) \
165167
NUMBER_OF_RUNS=3 \
166168
PRIVATE_KEY=0x1dd171cec7e2995408b5513004e8207fe88d6820aeff0d82463b3e41df251aae \
167169
RPC_URL=http:\\localhost:8545/ \
@@ -216,11 +218,17 @@ deploy-contracts-minimal:
216218
cd .. && \
217219
$(MAKE) -j6 deploy-linea-rollup-v$(L1_CONTRACT_VERSION) deploy-l2messageservice
218220

219-
start-all-staterecover: L1_CONTRACT_VERSION:=6
220-
start-all-staterecover: COMPOSE_PROFILES:=l1,l2,staterecover
221-
start-all-staterecover:
222-
L1_GENESIS_TIME=$(get_future_time) make start-whole-environment COMPOSE_PROFILES=$(COMPOSE_PROFILES)
223-
make deploy-contracts-minimal L1_CONTRACT_VERSION=$(L1_CONTRACT_VERSION)
221+
fresh-start-all-staterecover: COMPOSE_PROFILES:=l1,l2,staterecover
222+
fresh-start-all-staterecover: L1_CONTRACT_VERSION:=6
223+
fresh-start-all-staterecover:
224+
make clean-environment
225+
L1_GENESIS_TIME=$(get_future_time) make start-whole-environment-traces-v2 COMPOSE_PROFILES=$(COMPOSE_PROFILES)
226+
$(MAKE) deploy-contracts-minimal L1_CONTRACT_VERSION=$(L1_CONTRACT_VERSION)
227+
228+
fresh-start-staterecover-for-replay-only: COMPOSE_PROFILES:=l1,staterecover
229+
fresh-start-staterecover-for-replay-only:
230+
make clean-environment
231+
L1_GENESIS_TIME=$(get_future_time) make start-whole-environment-traces-v2 COMPOSE_PROFILES=$(COMPOSE_PROFILES)
224232

225233
testnet-start-l2:
226234
docker compose -f docker/compose.yml -f docker/compose-testnet-sync.overrides.yml --profile l2 up -d

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ allprojects {
8787
systemProperty("L1_RPC_URL", "http://localhost:8445")
8888
systemProperty("L2_RPC_URL", "http://localhost:8545")
8989
systemProperty("L1_GENESIS", "docker/config/l1-node/el/genesis.json")
90-
systemProperty("L2_GENESIS", "docker/config/linea-local-dev-genesis.json")
90+
systemProperty("L2_GENESIS", "docker/config/linea-local-dev-genesis-PoA.json")
9191

9292
systemProperties["junit.jupiter.execution.timeout.default"] = "5 m" // 5 minutes
9393
systemProperties["junit.jupiter.execution.parallel.enabled"] = true
@@ -203,7 +203,8 @@ dockerCompose {
203203
"staterecover"
204204
]
205205
useComposeFiles = [
206-
"${project.rootDir.path}/docker/compose.yml"
206+
"${project.rootDir.path}/docker/compose.yml",
207+
"${project.rootDir.path}/docker/compose-local-dev-traces-v2.overrides.yml"
207208
]
208209
waitForHealthyStateTimeout = Duration.ofMinutes(3)
209210
waitForTcpPorts = false

config/common/traces-limits-v2.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ BLOCK_HASH = 512
1010
EC_DATA = 262144
1111
EUC = 65536
1212
EXP = 8192
13-
EXT = 65536
13+
EXT = 1048576
1414
GAS = 65536
1515
HUB = 2097152
1616
LOG_DATA = 65536
1717
LOG_INFO = 4096
18-
MMIO = 2097152
18+
MMIO = 4194304
1919
MMU = 4194304
2020
MOD = 131072
2121
MUL = 65536
2222
MXP = 524288
2323
OOB = 262144
2424
RLP_ADDR = 4096
2525
RLP_TXN = 131072
26-
RLP_TXN_RCPT = 32768
27-
ROM = 8388608
26+
RLP_TXN_RCPT = 65536
27+
ROM = 4194304
2828
ROM_LEX = 1024
2929
SHAKIRA_DATA = 32768
3030
SHF = 65536
31-
STP = 32768
32-
TRM = 8192
31+
STP = 16384
32+
TRM = 32768
3333
TXN_DATA = 8192
3434
WCP = 262144
3535
#
36-
# Reference table limits
36+
# Reference table limits, set to UInt.MAX_VALUE
3737
#
38-
BIN_REFERENCE_TABLE = 196864
39-
SHF_REFERENCE_TABLE = 4096
40-
INSTRUCTION_DECODER = 512
38+
BIN_REFERENCE_TABLE = 4294967295
39+
SHF_REFERENCE_TABLE = 4294967295
40+
INSTRUCTION_DECODER = 4294967295
4141
#
4242
# Precompiles limits
4343
#
@@ -48,7 +48,7 @@ PRECOMPILE_MODEXP_EFFECTIVE_CALLS = 4
4848
PRECOMPILE_ECADD_EFFECTIVE_CALLS = 16384
4949
PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 32
5050
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 16
51-
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 64
51+
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 64
5252
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 64
5353
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 600
5454
PRECOMPILE_BLAKE_ROUNDS = 600
@@ -59,4 +59,3 @@ BLOCK_KECCAK = 8192
5959
BLOCK_L1_SIZE = 1000000
6060
BLOCK_L2_L1_LOGS = 16
6161
BLOCK_TRANSACTIONS = 200
62-

config/coordinator/coordinator-docker-traces-v2-override.config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ blob-compressor-version="V1_0_1"
1818
expected-traces-api-version-v2="v0.8.0-rc8"
1919
[traces.counters-v2]
2020
endpoints=["http://traces-node-v2:8545/"]
21-
request-limit-per-endpoint=2
21+
request-limit-per-endpoint=1
2222
request-retry.backoff-delay="PT1S"
2323
request-retry.failures-warning-threshold=2
2424
[traces.conflation-v2]
2525
endpoints=["http://traces-node-v2:8545/"]
26-
request-limit-per-endpoint=2
26+
request-limit-per-endpoint=1
2727
request-retry.backoff-delay="PT1S"
2828
request-retry.failures-warning-threshold=2
2929

config/coordinator/coordinator-docker.config.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ fee-history-reward-percentile=15
126126
last-hash-search-window=25
127127
anchoring-receipt-polling-interval="PT01S"
128128
max-receipt-retries=120
129-
# Number of children blocks to wait before considering a block "finalized"
130-
# and elegible for conflation and
131-
# this a workaround to mitigate Geth fork issues with Clique PoA
129+
# Number of children blocks to wait before considering they won't be reverted and elegible for conflation.
130+
# this is a workaround to mitigate Geth fork issues with Clique PoA
132131
# Coordinator will consider block as finalized after being included in the chain wtih children blocks-to-finalization
133-
# Recommended minimum of 2
134-
blocks-to-finalization=2
132+
# Recommended: Geth sequencer minimum of 2, Besu sequencer minimum of 1, 0 is safe localy
133+
blocks-to-finalization=0
135134

136135
[blob-submission]
137136
disabled=true
@@ -153,10 +152,10 @@ proof-submission-delay="PT1S"
153152

154153
[proof-aggregation]
155154
aggregation-proofs-limit=3
156-
aggregation-deadline="PT1M"
155+
aggregation-deadline="PT10S"
157156
aggregation-coordinator-polling-interval="PT2S"
158157
deadline-check-interval="PT8S"
159-
target-end-blocks=[]
158+
#target-end-blocks=[33, 90, 93]
160159

161160
[finalization-signer]
162161
# Web3j/Web3signer
@@ -267,8 +266,8 @@ num-of-blocks-before-latest=4
267266
storage-period="PT2M"
268267

269268
[conflation]
270-
blocks-limit=2
271-
conflation-deadline="PT6S" # =3*l2_block_time
269+
blocks-limit=3
270+
conflation-deadline="PT6S"
272271
conflation-deadline-check-interval="PT3S"
273272
conflation-deadline-last-block-confirmation-delay="PT2S" # recommended: at least 2 * blockInterval
274273

config/coordinator/log4j2-dev.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
<DebouncingFilter/>
101101
<appender-ref ref="rewrite"/>
102102
</Logger>
103+
<Logger name="net.consensys.linea.ethereum.gaspricing.staticcap" level="ERROR" additivity="false">
104+
<DebouncingFilter/>
105+
<appender-ref ref="rewrite"/>
106+
</Logger>
103107
<Logger name="net.consensys.zkevm.ethereum.finalization" level="INFO" additivity="false">
104108
<DebouncingFilter/>
105109
<appender-ref ref="rewrite"/>
@@ -112,6 +116,10 @@
112116
<DebouncingFilter/>
113117
<appender-ref ref="console"/>
114118
</Logger>
119+
<!-- <Logger name="clients.TracesCounters" level="TRACE" additivity="false">-->
120+
<!-- <DebouncingFilter/>-->
121+
<!-- <appender-ref ref="console"/>-->
122+
<!-- </Logger>-->
115123
<!-- <Logger name="clients.l2" level="DEBUG" additivity="false">-->
116124
<!-- <appender-ref ref="console"/>-->
117125
<!-- </Logger>-->

0 commit comments

Comments
 (0)