python-bitcoin-blockchain-parser icon indicating copy to clipboard operation
python-bitcoin-blockchain-parser copied to clipboard

invalid transactions for some blocks

Open Feddya opened this issue 4 years ago • 3 comments

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.

Feddya avatar Mar 05 '21 20:03 Feddya

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

alecalve avatar Mar 18 '21 14:03 alecalve

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

steliosrammos avatar May 04 '21 21:05 steliosrammos