// Numbas version: finer_feedback_settings {"name": "Auditing Pectra Blob-Gas Excess Across a Block Boundary", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Auditing Pectra Blob-Gas Excess Across a Block Boundary", "tags": ["blob gas", "blockchain", "EIP-4844", "Ethereum", "Pectra", "protocol accounting"], "metadata": {"description": "

A specification-based numerical audit of Ethereum blob-gas accounting across a block boundary under the historical Pectra parameter set. The learner applies EIP-4844 recurrence semantics and distinguishes the target from the maximum.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Under the historical Pectra / EIP-7691 parameter set (not a claim about later mainnet schedules), GAS_PER_BLOB is 131,072 and the target is 6 blobs, or 786,432 blob-gas units. A parent block has excess_blob_gas = 524,288 and blob_gas_used = 1,179,648. Using the EIP-4844 recurrence child_excess = max(parent_excess + parent_blob_gas_used - target_blob_gas, 0), calculate the child block's excess_blob_gas.

", "advice": "

Worked solution

\n

524,288 + 1,179,648 = 1,703,936. Subtract the Pectra target of 786,432: 1,703,936 - 786,432 = 917,504 blob-gas units. The value is positive, so clamping at zero does not change it. The result equals seven blobs of gas because 7 × 131,072 = 917,504.

\n

Specification sources

\n\n

Independent educational resource prepared by Mushegh Manukyan, Founder & CEO of ARMCP. CC BY 4.0. Not investment advice.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Child block excess_blob_gas", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Enter the exact integer in blob-gas units.

", "minValue": "917504", "maxValue": "917504", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "917504", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "resources": []}]}], "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}]}