Commit f684a9f
authored
chore: resolve stale TODOs in epoch processing (#285)
Resolves two stale TODOs in epoch processing:
1. **`process_pending_deposits.zig`**: Removed false-alarm TODO
questioning whether `withdrawal_credentials` matches the spec — it does.
`PendingDeposit.withdrawal_credentials` is `Bytes32`, exactly matching
the consensus spec.
2. **`process_randao_mixes_reset.zig`**: Replaced mystery `TODO inspect
why this clone was needed` with an explanation. The clone is necessary
because `set()` at a different gindex may CoW-rebranch the persistent
merkle tree, invalidating the node reference returned by `get()`.
🤖 Generated with AI assistance
Co-authored-by: lodekeeper-z <lodekeeper-z@users.noreply.github.com>1 parent 1060251 commit f684a9f
File tree
2 files changed
+3
-2
lines changed- src/state_transition/epoch
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments