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

Failure fetching input transaction #142

Closed
evoskuil opened this issue Jan 2, 2016 · 4 comments
Closed

Failure fetching input transaction #142

evoskuil opened this issue Jan 2, 2016 · 4 comments
Labels

Comments

@evoskuil
Copy link
Member

evoskuil commented Jan 2, 2016

08:04:43.777374 WARNING [validate] Failure fetching input transaction.
08:04:43.778380 WARNING [validate] Invalid input [cb57c8ee6d29c8343bb3c783bd068edb6a3d75489b8ba16d1431b3884b389881:464]
08:04:43.791376 WARNING [validate] Invalid block [000000000000000005a91d4e72303f6b112af30ebc40262d404826c07feeb772] validation of inputs failed
08:04:43.791376 ERROR [poller] Error storing block [000000000000000005a91d4e72303f6b112af30ebc40262d404826c07feeb772] validation of inputs failed
@evoskuil evoskuil added the bug label Jan 2, 2016
@evoskuil
Copy link
Member Author

evoskuil commented Jan 2, 2016

This look similar in behavior to #118 but could not share the same cause.

@evoskuil
Copy link
Member Author

evoskuil commented Jan 2, 2016

This problem reproduces on Windows without-consensus and does not affect Linux with-consensus builds.

@evoskuil
Copy link
Member Author

evoskuil commented Jan 2, 2016

I added the hash of the transaction to debug output, and stepped through the failure in a debugger. The code is behaving properly but the transaction is not found in the blockchain. BX confirms this when directed at this server:

$ bx fetch-tx 6f765bff6e4f5496702edb7ee5c66f45c9119a80d2c5fb2e2c352f09151507eb
object does not exist

When directed at the production (Airbitz) server the transaction is returned, and block explorers confirm the tx at height 360073. Given that the problem server is synced through block 391384 the blockchain is clearly missing this transaction.

There is no conditional code that would cause this behavior to vary between Windows and Linux, so this reinforces the conclusion that the blockchain is corrupt on this server. This is rare but it is known to be possible. This particular server had at least one hard shutdown (due to libbitcoin/libbitcoin-server#145).

@evoskuil evoskuil closed this as completed Jan 2, 2016
@evoskuil
Copy link
Member Author

evoskuil commented Jan 8, 2016

I re-synced with the same build and this issue did not recur.

@evoskuil evoskuil changed the title Failure validating block with internal tx reference. Failure fetching input transaction, storing block. Jan 15, 2016
@evoskuil evoskuil changed the title Failure fetching input transaction, storing block. Failure fetching input transaction Jan 15, 2016
@evoskuil evoskuil added wontfix and removed bug labels Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant