Author

Topic: 5 bytes long sendcmpct message (Read 679 times)

newbie
Activity: 2
Merit: 0
December 19, 2016, 01:36:54 AM
#5
Been seeing this as well. Very strange. My code just ignores the compact block functionality and increases ban score by 10 (I actually do this for any message that fails parsing).
staff
Activity: 3458
Merit: 6793
Just writing some code
December 18, 2016, 11:55:28 AM
#4
My code rejects the message since it is too short (message decode fails)

Yes, mine too.

But maybe it shouldn't?
I think it should be failing. sendcmpct is supposed to be 9 bytes (1 byte boolean 8 byte uint64).

My guess is that someone wrote their own node software, set the user agent to be /Satoshi:0.13.1/ for some reason, and then did not realize that the version integer is uint64 instead of uint32.
legendary
Activity: 2053
Merit: 1356
aka tonikt
December 18, 2016, 09:27:20 AM
#3
My code rejects the message since it is too short (message decode fails)

Yes, mine too.

But maybe it shouldn't?
full member
Activity: 136
Merit: 120
December 18, 2016, 09:21:43 AM
#2
My code rejects the message since it is too short (message decode fails)
legendary
Activity: 2053
Merit: 1356
aka tonikt
December 18, 2016, 05:34:45 AM
#1
Recently I see more and more nodes, introducing themselves as "/Satoshi:0.13.1/" but sending me sendcmpct message that is only 5 bytes long.

Can anyone say if they are legitimate bitcoin core nodes, or just some other stuff pretending to be the latest release of core?

What shall I do with sendcmpct message that carry only 5 bytes of data?

Some example logs below

Code:
42314 139.59.208.241:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42314 139.59.208.241:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
42453 46.101.99.121:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42453 46.101.99.121:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
42454 46.101.99.121:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42454 46.101.99.121:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
42698 138.68.66.47:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42698 138.68.66.47:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
42866 139.59.209.199:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42866 139.59.209.199:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
42923 46.101.109.46:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
42923 46.101.109.46:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
43048 139.59.157.246:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
43048 139.59.157.246:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
43513 138.68.64.28:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
43513 138.68.64.28:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
43788 46.101.228.246:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
43788 46.101.228.246:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
43997 139.59.208.241:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
43997 139.59.208.241:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
44088 188.166.161.228:8333 /Satoshi:0.13.1/ sendcmpct 0002000000
44088 188.166.161.228:8333 /Satoshi:0.13.1/ sendcmpct 0001000000
Jump to: