Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: optimator on September 17, 2012, 07:00:54 PM



Title: tx protocol spec
Post by: optimator on September 17, 2012, 07:00:54 PM
I'm comparing the information in blockexplorer to the protocol specification on the wiki https://en.bitcoin.it/wiki/Protocol_specification (https://en.bitcoin.it/wiki/Protocol_specification).

Specifically, I'm interested in the tx message type. Block explorer shows a hash for each tx entry. This makes sense. However, I don't see a tx hash in the specs?? I'm sure I'm just missing it... Can someone point me in the right direction?


Title: Re: tx protocol spec
Post by: Gavin Andresen on September 17, 2012, 08:18:35 PM
You request a transaction by hash (using an 'inv' message).

You then get the transaction in a 'tx' message.  The hash isn't sent as part of that data, because you can reconstruct it by hashing the transaction data.


Title: Re: tx protocol spec
Post by: optimator on September 17, 2012, 08:32:24 PM
Thanks!!! I was making it harder that it was....