-
Notifications
You must be signed in to change notification settings - Fork 65
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
Optional fields are required to make bitcoin block, causing errors #381
Comments
AFAICT
I don't see where these are being used apart from just being set: chainhook/components/chainhook-sdk/src/indexer/bitcoin/mod.rs Lines 499 to 500 in 499b86c
Since fees can be extracted from the block's RPC response, is removing |
We actually found that it was the All transactions except coinbase transactions must have a prevout field, so it's okay to require them. |
that makes sense! |
@MicaiahReid I noticed that the |
@qustavo great find. There's additional discussion here: #391 (comment) |
It looks like this occurs when using an outdated version of bitcoind. We will be specifying the requirement to use bitcoind v24+ in #405. Closing this issue as not planned. |
Describe the bug
On this line when standardizing a bitcoin block, the
prevout
field for a bitcoin transaction is required, and Chainhook throws an error if the field is missing. However,prevout
is an optional field, and many transaction inputs don't include it.This causes many blocks to be skipped and will definitely lead to missed predicate triggers.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A bitcoin block is build event when optional transaction inputs are missing.
The text was updated successfully, but these errors were encountered: