Repository navigation
test(drive-abci): pin the check tx reservation split and fix its doc - #5990
Conversation
…e gas The tests of the lookup reservation could not tell a reservation missing its key hash or consumed delete from a complete one: a balance one credit short of check tx's estimate is refused whatever the estimate holds, the 12,000,000-credit query allowance covers a missing delete in the block, and the gas test compared two figures both holding the billed part. The consuming reveal's block test now runs check tx with the query's allowance at what the block bills for the query, so the held estimate covers the block only with the delete reserved. A new gas test rebuilds check tx's event at protocol versions 14 and 15, on the first check and on a recheck, with no fee increase and with 100%: the billed reservation is exactly the key hash and the delete, the bounds exactly the allowance, the gas the estimate without the bounds (exactly, or one credit above), and the billed part, raised as the estimate is, is in it. Test-only change: it passes on the current code; removing the delete from the reservation fails the block test, and reporting the hash and the delete as bounds fails the gas test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he scan budget The doc of document reference validation 1's chooseFirst check said check tx reserves the scan's budget and the competitors' hashes for a create its contest decides too; choose_first_reservation 1 reserves only the budget for it, as no competitor is read. Comment-only change, no test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
🔍 Review in progress (commit 7aae447) · live progress |
Issue being fixed or feature implemented
Answers Sam's review of #5984, which was merged before the review arrived:
Tests and a doc comment only; no behaviour change.
What was done?
Block test of a consuming reveal
(
should_reserve_the_lookup_and_the_consumed_commitments_delete_when_admitting_a_reveal).lookup_query_credits_reservedset to what the block bills for the lookup query, measured through the block's own reference validation.New gas test (
should_report_the_gas_a_reveal_wants_with_its_billed_reservation_in, replacing the old allowance-only gas test). It rebuilds check tx's event (state_transition_to_execution_event_for_check_tx) and asserts:gas_wantedis the event's fee without the bounds: exactly with no fee increase, otherwise exactly or one credit above;It runs at protocol versions 14 and 15, on the first check and on a recheck, with no fee increase and with 100%. Another allowance still moves the judged fee and not the gas.
Doc fix: document reference validation 1's
chooseFirstdoc now says check tx reserves only the scan budget for a create its contest decides.Helpers:
CommitRevealFixture::check_tx_at_versionchecks at a given platform version;creation_transition_raising_feesbuilds a create with a user fee increase.How Has This Been Tested?
-D warningsis clean.Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
7aae447/skip-botsproceeds without the ones not yet reported/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.