Skip to content

Replace hashes_fuzz with local fuzz gates#4551

Draft
joostjager wants to merge 1 commit intolightningdevkit:mainfrom
joostjager:fuzz-real-hash
Draft

Replace hashes_fuzz with local fuzz gates#4551
joostjager wants to merge 1 commit intolightningdevkit:mainfrom
joostjager:fuzz-real-hash

Conversation

@joostjager
Copy link
Copy Markdown
Contributor

@joostjager joostjager commented Apr 10, 2026

Removes the global hashes_fuzz mode and replaces it with small local cfg(fuzzing) exceptions at the specific hash/MAC verification gates that matter for fuzz coverage.

This keeps hashing real by default, updates the few harnesses that depended on fake hashes, and removes the extra hashes_fuzz target/config/CI plumbing. A quick profiling session showed that for chanmon_consistency, real hash usage increases runtime by about 15%, which seems acceptable.

We don’t toggle hashes_fuzz per target because it is a build-time cfg on the whole fuzz crate. Doing that cleanly would require target-specific generator/build logic or splitting targets into separate packages, while local gate exceptions give us the same coverage benefit with much less complexity and a smaller blast radius.

@ldk-reviews-bot
Copy link
Copy Markdown

👋 Hi! I see this is a draft PR.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

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.

2 participants