Skip to content

Commit dee5c2a

Browse files
committed
Merge remote-tracking branch 'origin/master' into fix/block-validator-shutdown-resilience
2 parents cefabc1 + eb994bc commit dee5c2a

170 files changed

Lines changed: 4468 additions & 3469 deletions

File tree

Some content is hidden

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

.github/workflows/_validation-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ jobs:
3232
- name: Run arbitrator prover on block input json
3333
run: |
3434
target/bin/prover target/machines/latest/machine.v2.wavm.br -b \
35-
--json-inputs="${{ env.INPUT_FILE }}"
35+
--json-inputs="${{ env.INPUT_FILE }}" | tee /tmp/prover_output.txt
36+
grep -q "Computed state matches the expected one" /tmp/prover_output.txt
3637
3738
- name: Run jit prover on block input json
3839
id: jit
3940
run: |
4041
target/bin/jit --binary target/machines/latest/replay.wasm --require-success --debug \
4142
json --inputs '${{ env.INPUT_FILE }}' | tee /tmp/jit_output.txt
4243
44+
grep -q "Computed state matches the expected one" /tmp/jit_output.txt
4345
JIT_HASH=$(grep -oP 'hash \K(0x)?[a-f0-9]+' /tmp/jit_output.txt)
4446
echo "jit_hash=$JIT_HASH" >> $GITHUB_OUTPUT
4547

.github/workflows/testdata/block_inputs.json

Lines changed: 84 additions & 78 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ members = [
77
"crates/jit",
88
"crates/validation",
99
"crates/prover",
10+
"crates/prover-ffi",
1011
"crates/stylus",
1112
"crates/validator",
1213
"crates/wasm-libraries/arbcompress",
@@ -33,7 +34,7 @@ resolver = "2"
3334

3435
[workspace.package]
3536
authors = ["Offchain Labs"]
36-
edition = "2021"
37+
edition = "2024"
3738
homepage = "https://arbitrum.io"
3839
license = "BSL"
3940
publish = false
@@ -105,6 +106,7 @@ caller-env = { path = "crates/caller-env", default-features = false }
105106
forward = { path = "crates/wasm-libraries/forward" }
106107
jit = { path = "crates/jit" }
107108
prover = { path = "crates/prover", default-features = false }
109+
prover-ffi = { path = "crates/prover-ffi" }
108110
stylus = { path = "crates/stylus", default-features = false }
109111
user-host-trait = { path = "crates/wasm-libraries/user-host-trait" }
110112
validation = { path = "crates/validation" }

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ rust_arbutil_files = $(wildcard crates/arbutil/src/*.* crates/arbutil/src/*/*.*
8787

8888
prover_direct_includes = $(patsubst %,$(output_latest)/%.wasm, forward forward_stub)
8989
prover_dir = crates/prover/
90-
rust_prover_files = $(wildcard $(prover_dir)/src/*.* $(prover_dir)/src/*/*.* $(prover_dir)/*.toml $(prover_dir)/*.rs) $(rust_arbutil_files) $(prover_direct_includes) $(arb_brotli_files)
90+
prover_ffi_dir = crates/prover-ffi/
91+
rust_prover_files = $(wildcard $(prover_dir)/src/*.* $(prover_dir)/src/*/*.* $(prover_dir)/*.toml $(prover_dir)/*.rs) $(wildcard $(prover_ffi_dir)/src/*.rs $(prover_ffi_dir)/*.toml) $(rust_arbutil_files) $(prover_direct_includes) $(arb_brotli_files)
9192

9293
wasm_lib = crates/wasm-libraries
9394
wasm_lib_cargo = $(wasm_lib)/.cargo/config.toml

arbnode/mel/delayed_message_backlog.go

Lines changed: 0 additions & 136 deletions
This file was deleted.

arbnode/mel/delayed_message_backlog_test.go

Lines changed: 0 additions & 81 deletions
This file was deleted.

arbnode/mel/extraction/message_extraction_function.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,19 +210,13 @@ func extractMessagesImpl(
210210
)
211211
}
212212

213-
// Update the delayed message accumulator in the MEL state.
213+
// Update the delayed message inbox accumulator in the MEL state.
214214
for _, delayed := range delayedMessages {
215215
if err = state.AccumulateDelayedMessage(delayed); err != nil {
216216
return nil, nil, nil, nil, err
217217
}
218218
state.DelayedMessagesSeen += 1
219219
}
220-
if len(delayedMessages) > 0 {
221-
// Only need to calculate partials once, after all the delayed messages are `seen`
222-
if err := state.GenerateDelayedMessagesSeenMerklePartialsAndRoot(); err != nil {
223-
return nil, nil, nil, nil, err
224-
}
225-
}
226220

227221
// Extract L2 messages from batches
228222
for i, batch := range batches {

arbnode/mel/messages.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818

1919
var ErrDelayedMessageNotYetFinalized = errors.New("delayed message not yet finalized")
2020
var ErrDelayedAccumulatorMismatch = errors.New("delayed message accumulator mismatch")
21+
var ErrDelayedMessagePreimageNotFound = errors.New("delayed message preimage not found")
2122

2223
type BatchDataLocation uint8
2324

0 commit comments

Comments
 (0)