Bug in PartiallyDownloadedBlock fuzz test logic or behavior #32640

issue rando876 openend this issue on May 29, 2025
  1. rando876 commented at 2:59 pm on May 29, 2025: none

    There may be a bug in the fuzz test implementation for PartiallyDownloadedBlock in src/test/fuzz/partially_downloaded_block.cpp. Please investigate the following:

    • The fuzz test performs various operations relating to compact blocks and partial downloads, including marking transactions as available, manipulating mempool/extra_txn, and reconstructing blocks.
    • It uses assertions to check the state after calling InitData and FillBlock on PartiallyDownloadedBlock.
    • The test may not properly handle some edge cases or error conditions, especially with regard to skipped/missing transactions or with the mock check block logic.

    Please review the fuzz test logic for correctness, robustness, and potential failure to catch certain classes of errors, especially around:

    • Handling of skip/missing transactions and the related assertions
    • The assignment or logic in check_block_mock
    • Any cases where the test could pass erroneously or fail to catch regressions

    Additional context may be required depending on the specific bug observed or the test coverage intended.

  2. fanquake closed this on May 29, 2025


rando876


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-06-15 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me