p2p-fullblocktest.py might result in failed mempool check #7978

issue domob1812 opened this issue on April 30, 2016
  1. domob1812 commented at 11:32 AM on April 30, 2016: contributor

    When I apply https://github.com/domob1812/bitcoin/commit/694eb5b52ab243d3f62c8c5da4346883ec51ed44 (to add mempool checks when (dis)connecting the tip), p2p-fullblocktest.py becomes flaky and fails the mempool check sometimes with:

    bitcoind: txmempool.cpp:722: void CTxMemPool::check(const CCoinsViewCache*) const: Assertion `CheckInputs(tx, state, mempoolDuplicate, false, 0, false, __null)' failed.
    

    To me this looks like an issue with mempool handling or checking. I think that the mempool should be valid at the points where the checks are inserted. If this is indeed the case, then this should not happen. Let me know if my assumption is wrong and the mempool is not supposed to be consistent at these positions in the code.

  2. MarcoFalke added the label Tests on Apr 30, 2016
  3. MarcoFalke added the label Mempool on Apr 30, 2016
  4. sdaftuar commented at 6:25 PM on April 30, 2016: member

    Mempool consistency is only enforced at the end of a reorg, so it's not meant to be consistent at the places in the code you've added these checks. See comment line just above DisconnectTip.

  5. domob1812 referenced this in commit c311e376ea on May 28, 2016
  6. MarcoFalke closed this on Jan 16, 2018

  7. MarcoFalke locked this on Sep 8, 2021
Contributors

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: 2026-04-21 18:15 UTC

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