New answers tagged


You need to send a version message (and receiving the correspondant verack) before sending anything else. Here is a quickly patched version of your script which handles the version message: import hashlib import random import socket import time import urllib.request PEER_IP = "" PEER_PORT = 8333 nonce = (random.getrandbits(64)).to_bytes(8, ...

Top 50 recent answers are included