Author

Topic: Transaction Hash Calculation problem (starting @2nd transaction in the block) (Read 683 times)

full member
Activity: 193
Merit: 121
Just digging around
Thank you.
Could I be wrong at the first transaction at each block, and the same hash calculation fails at all the rest of the transactions?
I can only see that coinbase transactions have very short scriptSigLen. But I have the correct len as all of the transactions have the correct values.

Will try to play with that value a bit more, if I find the solution I will post it here. Any more ideas are welcome Smiley
legendary
Activity: 2142
Merit: 1010
Newbie
Check endianness carefully. I had similar problem.
full member
Activity: 193
Merit: 121
Just digging around
Hi,

I am trying to calculate the correct hashes of BTC transactions.

I used this as a guide (couldn't find anything deeper Sad):
http://bitcoin.stackexchange.com/questions/2859/how-are-transaction-hashes-calculated

Works ok, as the page says, but only for the first transaction in each block.
All the rest of the transaction hash-es are "no good".
I wonder what should I do differently? Should I carry over something from the 1th hash to the 2nd and so on??

Any help would be appreciated.

Thanks
Gabor
Jump to: