Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/messages.py
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
NODE_NETWORK = (1 << 0) | NODE_NETWORK = (1 << 0) | ||||
# NODE_GETUTXO = (1 << 1) | # NODE_GETUTXO = (1 << 1) | ||||
NODE_BLOOM = (1 << 2) | NODE_BLOOM = (1 << 2) | ||||
# NODE_WITNESS = (1 << 3) | # NODE_WITNESS = (1 << 3) | ||||
NODE_XTHIN = (1 << 4) | NODE_XTHIN = (1 << 4) | ||||
NODE_BITCOIN_CASH = (1 << 5) | NODE_BITCOIN_CASH = (1 << 5) | ||||
NODE_NETWORK_LIMITED = (1 << 10) | NODE_NETWORK_LIMITED = (1 << 10) | ||||
MSG_TX = 1 | |||||
MSG_BLOCK = 2 | |||||
MSG_TYPE_MASK = 0xffffffff >> 2 | |||||
# Howmuch data will be read from the network at once | # Howmuch data will be read from the network at once | ||||
READ_BUFFER_SIZE = 8192 | READ_BUFFER_SIZE = 8192 | ||||
# Serialization/deserialization tools | # Serialization/deserialization tools | ||||
def sha256(s): | def sha256(s): | ||||
return hashlib.new('sha256', s).digest() | return hashlib.new('sha256', s).digest() | ||||
▲ Show 20 Lines • Show All 1,195 Lines • Show Last 20 Lines |