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

invalid transactions for some blocks #93

Open
Feddya opened this issue Mar 5, 2021 · 2 comments
Open

invalid transactions for some blocks #93

Feddya opened this issue Mar 5, 2021 · 2 comments

Comments

@Feddya
Copy link

Feddya commented Mar 5, 2021

I am checking block 00000000000000000024fb37364cbf81fd49cc2d51c09c75c35433c3a1945d04 and for this block program prints invalid transactions (hashes). It prints
0 - 50b8f5c915b23ea6bc7b1bbc9f58cd452aa2557f3ac1d86660f5f53475d9c437
1 - a0d8ef18cf4ce5f14800f375d4ae7e240a684d85b3a660b87ec586f7737a2366
2 - 1024cb12a576b69defa67dbc2f1899700ab58e5ad3d5e058edefb907f59865bc
3 - 83eeaecaf531e5239ffc3ba7ff583c696f7dbe3610f0d672d41e0b9443632c82
and so on.
Looking on blockchain.com site (https://www.blockchain.com/ru/btc/block/00000000000000000024fb37364cbf81fd49cc2d51c09c75c35433c3a1945d04) i see that first two transactions not matching with site output but others are correct.
I have found several more such blocks but not sure what is error related too. I tried to print random blocks of different versions, but it seems to be working fine.

@alecalve
Copy link
Owner

Are you comparing transaction hashes or transaction ids (txid)?

@steliosrammos
Copy link

steliosrammos commented May 4, 2021

I've got a similar issue.

In block 481824, the tx hash dfcec48bb8491856c353306ab5febeb7e99e4d783eedf3de98f3ee0812b92bad is mistakenly returned by the library as 48a387570eeffb07e8e84642efe36bc4088285fc04db91743a9850bfd1611af2 (which does not exist).

Edit: I see now you've mentioned the txid should be used to be compatible with Segwit transactions

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

No branches or pull requests

3 participants