|
November 13, 2011, 05:12:06 AM |
|
I'm working on the network i/o for a bitcoin node. Immediately after receiving an inv message from a peer, I'm sending it back but just changing the "inv" command to "getdata". It is my understanding that the inventory list structure is identical in both types of message, and therefore the payload can be identical. Only the 12 byte command code needs to be changed from {'i','n','v',0,0,0,0,0,0,0,0,0} to {'g','e','t','d','a','t','a',0,0,0,0,0}. Other nodes seem to recognize the message as a getdata message, but are not replying with any tx or block messages.
Any ideas why?
|