Commit 9bf115f
authored
Reset withdrawable epoch when depositing to an exited builder (#5373)
@brech1 [has pointed
out](https://notes.ethereum.org/@brech1/crowd-validator-sweep) an
easy-to-abuse way of slowing down the validator sweep. This PR
implements his suggested solution of resetting the builder's
withdrawable epoch on deposit top-ups so that it cannot re-use those
funds to sustain this attack. My napkin math tells me that it would
require 75 ETH (~$150k) per minute to sustain this attack. This solution
would prevent an attack from quickly getting that ETH back to
re-deposit.1 parent 8ebaf5b commit 9bf115f
2 files changed
Lines changed: 59 additions & 2 deletions
File tree
- specs/gloas
- tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1587 | 1587 | | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | | - | |
1591 | 1590 | | |
1592 | | - | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1593 | 1600 | | |
1594 | 1601 | | |
1595 | 1602 | | |
| |||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
208 | 258 | | |
209 | 259 | | |
210 | 260 | | |
| |||
0 commit comments