Skip to content

Commit b15a5dd

Browse files
authored
fix: BLOBHASH & BLOBBASEFEE should not enabled in CURIE (#40)
* fix blob related issue * add sepolia test * fix
1 parent 6b86fa9 commit b15a5dd

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ jobs:
8383
uses: actions/checkout@v4
8484
with:
8585
repository: 'scroll-tech/block-testdata'
86-
sparse-checkout: 'mainnet_blocks/flatten-proofs'
8786
path: 'testdata'
8887
- uses: dtolnay/rust-toolchain@master
8988
with:
9089
toolchain: ${{ matrix.rust }}
9190
- uses: Swatinem/rust-cache@v2
9291
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/mainnet_blocks/flatten-proofs/*
92+
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/sepolia_blocks/*

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/mod.rs

+15-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,21 @@ where
3232
{
3333
let mut ok = true;
3434
for account_post_state in exec.account_after.iter() {
35-
let local_acc = db
36-
.basic_ref(account_post_state.address.0.into())
37-
.unwrap()
38-
.unwrap();
35+
let local_acc = match db.basic_ref(account_post_state.address.0.into()).unwrap() {
36+
Some(acc) => acc,
37+
None => {
38+
if account_post_state.balance.is_zero()
39+
&& account_post_state.nonce == 0
40+
&& account_post_state.poseidon_code_hash.is_zero()
41+
&& account_post_state.keccak_code_hash.is_zero()
42+
{
43+
continue;
44+
}
45+
ok = false;
46+
dev_error!("local acc not found, trace acc {account_post_state:?}");
47+
continue;
48+
}
49+
};
3950

4051
#[cfg(feature = "dev")]
4152
if tracing::enabled!(Level::TRACE) {

0 commit comments

Comments
 (0)