Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mempool transaction missing input #2570

Closed
gavinandresen opened this issue Apr 26, 2013 · 6 comments
Closed

mempool transaction missing input #2570

gavinandresen opened this issue Apr 26, 2013 · 6 comments
Labels

Comments

@gavinandresen
Copy link
Contributor

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

Assertion 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.

@jgarzik
Copy link
Contributor

jgarzik commented Apr 26, 2013

I think that's always been an artifact. I bet reorg behaves the same way.

@sipa
Copy link
Member

sipa commented Apr 26, 2013

It has always been the case, until 0.8 (see 231b399). If it still happens, there is a bug.

@sipa
Copy link
Member

sipa commented Apr 26, 2013

@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)

@gavinandresen
Copy link
Contributor Author

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.

@Krellan
Copy link
Contributor

Krellan commented Jun 22, 2013

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:

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

I then restarted Bitcoin manually, and all seemed well.

@sipa
Copy link
Member

sipa commented Jun 22, 2013

Should be fixed in head by #2769.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants