Skip to content

docs: correct dig-mempool README and reserved error-variant docs - #2

Merged
MichaelTaylor3d merged 1 commit into
mainfrom
loop/mempool-doc-honesty
Jul 19, 2026
Merged

docs: correct dig-mempool README and reserved error-variant docs#2
MichaelTaylor3d merged 1 commit into
mainfrom
loop/mempool-doc-honesty

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

What changed

Documentation-only honesty fixes surfaced by an architecture audit of this crate:

  • README — replaced the stale # dig-coinstate placeholder (copy-paste leftover from another crate) with the actual crate name, one-paragraph purpose, the input/output boundary, and pointers to SPEC.md + the requirement catalog. This is the crates.io front page, so the wrong name was user-visible.
  • src/error.rs doc-comments — corrected two MempoolError variants whose docs described behaviour the crate does not currently produce:
    • FeeTooLow claimed it was "Returned when utilization >= 80% …" — utilization-based rejection is not wired into admission (estimate_min_fee() is advisory only), so the variant is never constructed. Now documented as reserved / not currently constructed.
    • Conflict(Bytes32) claimed "The bundle has been added to the conflict cache …" — unmet-RBF conflicts are surfaced through the specific Rbf* variants, so this catch-all is never constructed. Now documented as reserved.

Grep-confirmed both variants have zero construction sites in src/ outside their definitions.

Why

Public API docs advertised failure modes/behaviour the code never produces (§2.5 readable-code, §6.2 doc honesty). No behaviour change.

Verification

Doc-only + README; no logic touched. Version-increment gate satisfied.

Version bump

0.1.1 → 0.1.2 (patch) — documentation-only, no public API or behaviour change (§2.4 SemVer).


Generated by Claude Code

Replace the stale `dig-coinstate` README placeholder with the crate's
actual name, purpose, boundary, and doc pointers.

Correct two MempoolError doc-comments that described behaviour the crate
does not currently produce: `FeeTooLow` claimed it was "Returned when
utilization >= 80%" (utilization-based rejection is not wired into
admission), and `Conflict` claimed the bundle "has been added to the
conflict cache" (unmet-RBF conflicts surface via the specific `Rbf*`
variants). Both are now documented as reserved / not currently
constructed, matching the code.

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d merged commit 74ecfea into main Jul 19, 2026
7 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the loop/mempool-doc-honesty branch July 19, 2026 02:32
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