Bitcoin Forum
May 04, 2024, 03:04:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Last four bytes of inv messages  (Read 779 times)
TT (OP)
Member
**
Offline Offline

Activity: 77
Merit: 10



View Profile
November 17, 2011, 12:26:47 PM
 #1

I've been running a packet sniffer and noticing that many of the inv messages contain four additional bytes at the end that don't seem to be mentioned in https://en.bitcoin.it/wiki/Protocol_specification#inv at all.

What gives? I'm writing a bitcoin node, and when I send an inv message as is specified in that document, I get no getdata messages in reply. So what are these mysterious last four bytes?
1714791857
Hero Member
*
Offline Offline

Posts: 1714791857

View Profile Personal Message (Offline)

Ignore
1714791857
Reply with quote  #2

1714791857
Report to moderator
1714791857
Hero Member
*
Offline Offline

Posts: 1714791857

View Profile Personal Message (Offline)

Ignore
1714791857
Reply with quote  #2

1714791857
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714791857
Hero Member
*
Offline Offline

Posts: 1714791857

View Profile Personal Message (Offline)

Ignore
1714791857
Reply with quote  #2

1714791857
Report to moderator
1714791857
Hero Member
*
Offline Offline

Posts: 1714791857

View Profile Personal Message (Offline)

Ignore
1714791857
Reply with quote  #2

1714791857
Report to moderator
1714791857
Hero Member
*
Offline Offline

Posts: 1714791857

View Profile Personal Message (Offline)

Ignore
1714791857
Reply with quote  #2

1714791857
Report to moderator
TT (OP)
Member
**
Offline Offline

Activity: 77
Merit: 10



View Profile
November 17, 2011, 12:40:22 PM
 #2

I'll give a couple examples I just sniffed off my network:

f9 be b4 d9                                      <---- magic bytes
69 6e 76 00 00 00 00 00 00 00 00 00    <----- inv command
25 00 00 00                                      <----- payload length
94 39 95 3d                                      <----- payload checksum
01                                                   <----- inventory count
01 00 00 00                                       <------ MSG_TX
e6 e2 31 d1 65 84 69 dc f1 ec 25 cf 82 a9 76 19 7b a1 cf 44 e1 ae 5f 9a b9 2a d5 a2 32 b6 1b 85  <---- tx hash
9d 79 e5 cd     <------ WTF ARE THESE ?!?!?!?!


f9 be b4 d9                                      <---- magic bytes
69 6e 76 00 00 00 00 00 00 00 00 00    <----- inv command
25 00 00 00                                      <----- payload length
94 39 95 3d                                      <----- payload checksum
01                                                   <----- inventory count
01 00 00 00                                       <------ MSG_TX
e6 e2 31 d1 65 84 69 dc f1 ec 25 cf 82 a9 76 19 7b a1 cf 44 e1 ae 5f 9a b9 2a d5 a2 32 b6 1b 85  <-same tx hash
b2 10 4c 66    <------ AGAIN, WTF ARE THESE ?!?!?!?!

f9 be b4 d9                                      <---- magic bytes
69 6e 76 00 00 00 00 00 00 00 00 00    <----- inv command
25 00 00 00                                      <----- payload length
2b a0 0e 5a                                     <----- payload checksum
01                                                   <----- inventory count
01 00 00 00                                       <------ MSG_TX
81 7f 2f fe dd 0e 83 6e 77 fc 8b 75 4b 74 63 da be 35 c2 8a e2 c1 ec d6 2a 72 ab f6 68 f0 c0 a5  <- tx hash
5e 7f ad 95    <------ huh?!

I'm sure there must be a simple explanation for them.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12968


View Profile
November 17, 2011, 08:17:35 PM
 #3

Those aren't covered in the checksum. Did a client accept these messages?

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
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!