Commit fec93bd
fix(l2): add test chain with a non-empty block and bug fixes (#2068)
**Motivation**
The current `l2-loadtest.rlp` had empty blocks. After replacing with a
chain that contains a non-empty block, a bug was discovered when
creating a `ExecutionDB` from a `Store`: we would try to filter out new
accounts using revm's `AccountStatus` but for some reason every account
has the same status (`Touched`), meaning that we were not filtering at
all.
The solution was to not filter and assume that the `Store` is correct
based on the success of the pre-execution (so if an account is missing
from the parent state, then that account was created in the block to
prove).
**Description**
- replaces `l2-loadtest.rlp` file with one that contains a non empty
block
- fixes the bug described above1 parent 5bb9747 commit fec93bd
File tree
3 files changed
+25
-21
lines changed- crates
- l2/prover/tests
- vm
- test_data
3 files changed
+25
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
271 | | - | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
278 | | - | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
292 | | - | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
352 | 359 | | |
353 | 360 | | |
354 | 361 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | 362 | | |
359 | 363 | | |
360 | 364 | | |
| |||
Binary file not shown.
0 commit comments