Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/messages.py
Show All 18 Lines | |||||
import hashlib | import hashlib | ||||
from io import BytesIO | from io import BytesIO | ||||
import random | import random | ||||
import socket | import socket | ||||
import struct | import struct | ||||
import time | import time | ||||
from test_framework.siphash import siphash256 | from test_framework.siphash import siphash256 | ||||
from test_framework.util import hex_str_to_bytes, bytes_to_hex_str | from test_framework.util import bytes_to_hex_str, hex_str_to_bytes | ||||
MIN_VERSION_SUPPORTED = 60001 | MIN_VERSION_SUPPORTED = 60001 | ||||
# past bip-31 for ping/pong | # past bip-31 for ping/pong | ||||
MY_VERSION = 70014 | MY_VERSION = 70014 | ||||
MY_SUBVERSION = b"/python-mininode-tester:0.0.3/" | MY_SUBVERSION = b"/python-mininode-tester:0.0.3/" | ||||
# from version 70001 onwards, fRelay should be appended to version messages (BIP37) | # from version 70001 onwards, fRelay should be appended to version messages (BIP37) | ||||
MY_RELAY = 1 | MY_RELAY = 1 | ||||
▲ Show 20 Lines • Show All 1,183 Lines • Show Last 20 Lines |