Litecoin testnet transaction hash and block hash are the same

litecoin

#1

Hello Litcoin community!

After building litecoin v0.15.1rc1 client on Ubuntu 16.04 I wanted to build an app that uses Litecoin (For the last year i have been using bitcoin nodes for all my apps). But I stumbled upon something odd (at least to me).
I did the following command: ./litecoin-cli getrawtransaction 716aba3806b7737f5152af0079c73d20b924a4c1b679026feac42205e06d9f5b 1 and I saw that transaction hash and block hash are absolutely the same. Can someone explain this? I can paste the whole output if requested.

Thank you in advance :slight_smile:


#2

It is really unlikely tx hash and block hash will be the same. In fact, it is unlikely two things on the universe will ever have the same hash. So please double check :wink:

If you don’t mind, please paste whole output.