mempool transaction missing input #2570

issue gavinandresen openend this issue on April 26, 2013
  1. gavinandresen commented at 0:36 am on April 26, 2013: contributor

    I’ve got a testnet wallet that causes this assertion failure when I turn on CPU mining:

    0Assertion failed: ("mempool transaction missing input" == 0), function CreateNewBlock, file main.cpp, line 4233.
    

    I’m guessing it is a no-longer-valid-because-of-a-re-org transaction, but the wallet code shouldn’t be adding invalid transactions to the memory pool.

  2. jgarzik commented at 0:39 am on April 26, 2013: contributor
    I think that’s always been an artifact. I bet reorg behaves the same way.
  3. sipa commented at 11:19 am on April 26, 2013: member
    It has always been the case, until 0.8 (see 231b39995). If it still happens, there is a bug.
  4. sipa commented at 11:59 am on April 26, 2013: member
    @gavinandresen Why do you assume it’s caused by the wallet code? (not saying you’re wrong, just wondering whether some information is missing here)
  5. gavinandresen commented at 3:52 pm on April 26, 2013: contributor

    I think it is the wallet code because it happens immediately after a fresh, clean start, so I assume an unconfirmed transaction in the wallet is getting added to the memory pool (it isn’t a weird edge case during re-orgs or something).

    Let me know if you have debugging bandwidth, I’ll send you the wallet.

  6. Krellan commented at 6:00 pm on June 22, 2013: contributor

    I’m running Bitcoin-Qt version v0.8.2.2-g09e437b-beta

    Not sure if this has been fixed in the latest release, but this happened to me. It was just running in the background, scrolling debug messages in a window, when it crashed, with this error:

    0sending: inv (37 bytes)
    1received: inv (37 bytes)
    2  got inventory: tx c140253a4aeab6e4db5bdbd6c0a1d7d240490c241d86d01a819d5c9f16eb22fd  have
    3received: inv (37 bytes)
    4  got inventory: tx c140253a4aeab6e4db5bdbd6c0a1d7d240490c241d86d01a819d5c9f16eb22fd  have
    5sending: inv (397 bytes)
    6ERROR: mempool transaction missing input
    7bitcoin-qt: src/main.cpp:4241: CBlockTemplate* CreateNewBlock(CReserveKey&): Assertion `"mempool transaction missing input" == 0' failed.
    

    I then restarted Bitcoin manually, and all seemed well.

  7. sipa commented at 7:04 pm on June 22, 2013: member
    Should be fixed in head by #2769.
  8. sipa closed this on Jun 22, 2013

  9. MarcoFalke locked this on Sep 8, 2021

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: 2024-11-17 18:12 UTC

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