Skip to content

docs(block): correct deposit DA-size tracking comment#342

Open
wayzeek wants to merge 1 commit into
megaeth-labs:mainfrom
wayzeek:wayzeek/docs/deposit-da-size-tracking
Open

docs(block): correct deposit DA-size tracking comment#342
wayzeek wants to merge 1 commit into
megaeth-labs:mainfrom
wayzeek:wayzeek/docs/deposit-da-size-tracking

Conversation

@wayzeek

@wayzeek wayzeek commented Jul 16, 2026

Copy link
Copy Markdown

Summary

The block::limit module doc states that deposit DA sizes are "still tracked and accumulated in block DA usage counters for monitoring purposes." The implementation does the opposite: post_execution_update_raw guards the accumulation with if !is_deposit, so block_da_size_used only counts non-deposit transactions (its own unit test, test_post_execution_update_raw_skips_da_for_deposits, asserts this).

The spec treats this tracking as optional (resource-limits.md: DA size "MAY still be tracked for monitoring"), so the executor opting out is fine. This just corrects the comment so it matches the code and spec, and doesn't mislead anyone relying on block_da_size_used to reflect the block's full DA weight.

No behavior change (comment only).

The module doc claimed deposit DA sizes are still accumulated into the block
DA usage counters for monitoring, but post_execution_update_raw skips deposits
(block_da_size_used only accumulates non-deposit txs, per its own test). The
spec allows tracking as optional (RFC-2119 MAY); the executor opts out. Update
the comment to match the implementation and spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant