Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/messages.py
Show All 31 Lines | |||||
from test_framework.siphash import siphash256 | from test_framework.siphash import siphash256 | ||||
from test_framework.util import hex_str_to_bytes, assert_equal | from test_framework.util import hex_str_to_bytes, assert_equal | ||||
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-p2p-tester:0.0.3/" | ||||
# from version 70001 onwards, fRelay should be appended to version | # from version 70001 onwards, fRelay should be appended to version | ||||
# messages (BIP37) | # messages (BIP37) | ||||
MY_RELAY = 1 | MY_RELAY = 1 | ||||
MAX_LOCATOR_SZ = 101 | MAX_LOCATOR_SZ = 101 | ||||
MAX_BLOCK_BASE_SIZE = 1000000 | MAX_BLOCK_BASE_SIZE = 1000000 | ||||
MAX_BLOOM_FILTER_SIZE = 36000 | MAX_BLOOM_FILTER_SIZE = 36000 | ||||
MAX_BLOOM_HASH_FUNCS = 50 | MAX_BLOOM_HASH_FUNCS = 50 | ||||
▲ Show 20 Lines • Show All 2,027 Lines • Show Last 20 Lines |