File tree 3 files changed +21
-10
lines changed
3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ jobs:
83
83
uses : actions/checkout@v4
84
84
with :
85
85
repository : ' scroll-tech/block-testdata'
86
- sparse-checkout : ' mainnet_blocks/flatten-proofs'
87
86
path : ' testdata'
88
87
- uses : dtolnay/rust-toolchain@master
89
88
with :
90
89
toolchain : ${{ matrix.rust }}
91
90
- uses : Swatinem/rust-cache@v2
92
91
- 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/*
Original file line number Diff line number Diff line change @@ -32,10 +32,21 @@ where
32
32
{
33
33
let mut ok = true ;
34
34
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
+ } ;
39
50
40
51
#[ cfg( feature = "dev" ) ]
41
52
if tracing:: enabled!( Level :: TRACE ) {
You can’t perform that action at this time.
0 commit comments