We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 008dff5 commit f19dedbCopy full SHA for f19dedb
1 file changed
cmd/ethrex/l2/command.rs
@@ -431,7 +431,16 @@ impl Command {
431
let mut buf = &blob[8..];
432
let mut blocks = Vec::new();
433
for _ in 0..blocks_count {
434
- let (item, rest) = Block::decode_unfinished(buf)?;
+ let (mut item, rest) = Block::decode_unfinished(buf)?;
435
+
436
+ // TODO: Regenerate the legacy state-reconstruction fixture blobs with an
437
+ // explicit empty withdrawals list, then remove this compatibility fix.
438
+ // Older fixtures have a withdrawals root but omit withdrawals from the body.
439
+ if item.header.withdrawals_root.is_some() && item.body.withdrawals.is_none()
440
+ {
441
+ item.body.withdrawals = Some(Vec::new());
442
+ }
443
444
blocks.push(item);
445
buf = rest;
446
}
0 commit comments