fix: bound the deposit-refund backlog by collapsing refunds per address#397
fix: bound the deposit-refund backlog by collapsing refunds per address#397matthias-wright wants to merge 9 commits into
Conversation
|
I think this is a good partial fix for the deposit-refund amplification case. The new keying correctly collapses many rejected deposits to the same However, I do not think this fully closes #362 as written. The broader invariant is that the withdrawal cap should bound epoch-boundary finalizer work, not only the number of withdrawals emitted in the block.
There is also still an attacker-controlled way to avoid this specific collapse: the merge key includes I think the queue still needs capped-prefix iteration without materializing the full ready epoch, and rollover/SSZ updates need to avoid work proportional to the full overflow backlog. |
Builds on #380 (which builds on #377, #276, and #275).
Addresses #362.
Changes: