user43089: Few days ago I've found this article about using raw Bitcoin protocol and now I'm trying to make my own transaction with Python. But I'm already stuck on sending version message.
I've tried to use code snippets from the article. According to it, this code below should work, but Wireshark can't recognize anything and there's no verack response
import msgUtils
import socket

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("NODE_IP_ADDRESS", 8333)) # Shodan search 'port:8333'

sock.send(msgUtils.getVersionMsg())
sock.recv(1000) # receive version
sock.recv(1000) # receive verack

Maybe it don't work because article was written in 2014 and now it's totally outdated?

user10341: The msgUtils.py code didn't work with 64-bit Python due to a bug. I've fixed it, so you can try the updated code. (I'm the author of the article.)

43089: <p>Few days ago I've found this <a href="http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html" rel="nofollow noreferrer">article</a> about using raw Bitcoin protocol and now I'm trying to make my own transaction with Python. But I'm already stuck on sending <code>version</code> message.</p>

<p>I've tried to use <a href="https://github.com/shirriff/bitcoin-code" rel="nofollow noreferrer">code snippets</a> from the article. According to it, this code below should work, but Wireshark can't recognize anything and there's no <code>verack</code> response</p>

<pre><code>import msgUtils
import socket

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("NODE_IP_ADDRESS", 8333)) # Shodan search 'port:8333'

sock.send(msgUtils.getVersionMsg())
sock.recv(1000) # receive version
sock.recv(1000) # receive verack
</code></pre>

<p>Maybe it don't work because article was written in 2014 and now it's totally outdated?</p>
 10341: <p>The msgUtils.py code didn't work with 64-bit Python due to a bug. I've fixed it, so you can try the updated code. (I'm the author of the article.)</p>
