Bitcoin Forum
May 15, 2024, 07:15:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: tx protocol spec  (Read 841 times)
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
September 17, 2012, 07:00:54 PM
 #1

I'm comparing the information in blockexplorer to the protocol specification on the wiki 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?

Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
September 17, 2012, 08:18:35 PM
 #2

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.

How often do you get the chance to work on a potentially world-changing project?
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
September 17, 2012, 08:32:24 PM
 #3

Thanks!!! I was making it harder that it was....

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!