Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251res252})?;253// Finally, check that running over all fuzz inputs in one process is deterministic as well.254// This can catch issues where mutable global state is leaked from one fuzz input execution to255// the next.256println!("Check all fuzz inputs in one go ...");257{258if !corpus_dir.is_dir() {259Err(format!("{} should be a folder", corpus_dir.display()))?;260}261let cov_txt_base = run_single('a', &corpus_dir, 0)?;262let cov_txt_repeat = run_single('b', &corpus_dir, 0)?;263check_diff(264&cov_txt_base,265&cov_txt_repeat,266&format!("All fuzz inputs in {} were used.", corpus_dir.display()),267)?;268}269println!("✨ Coverage test passed for {fuzz_target}. ✨");270Ok(())271}273fn main() -> ExitCode {274match app() {275Ok(()) => ExitCode::SUCCESS,276Err(err) => {277eprintln!("⚠️\n{err}");278ExitCode::FAILURE279}280}281}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.