Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/mininode.py
Show All 24 Lines | |||||
import threading | import threading | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
CBlockHeader, | CBlockHeader, | ||||
MIN_VERSION_SUPPORTED, | MIN_VERSION_SUPPORTED, | ||||
msg_addr, | msg_addr, | ||||
msg_addrv2, | msg_addrv2, | ||||
msg_avapoll, | msg_avapoll, | ||||
msg_avaproof, | |||||
msg_tcpavaresponse, | msg_tcpavaresponse, | ||||
msg_avahello, | msg_avahello, | ||||
msg_block, | msg_block, | ||||
MSG_BLOCK, | MSG_BLOCK, | ||||
msg_blocktxn, | msg_blocktxn, | ||||
msg_cfcheckpt, | msg_cfcheckpt, | ||||
msg_cfheaders, | msg_cfheaders, | ||||
msg_cfilter, | msg_cfilter, | ||||
Show All 28 Lines | |||||
from test_framework.util import wait_until | from test_framework.util import wait_until | ||||
logger = logging.getLogger("TestFramework.mininode") | logger = logging.getLogger("TestFramework.mininode") | ||||
MESSAGEMAP = { | MESSAGEMAP = { | ||||
b"addr": msg_addr, | b"addr": msg_addr, | ||||
b"addrv2": msg_addrv2, | b"addrv2": msg_addrv2, | ||||
b"avapoll": msg_avapoll, | b"avapoll": msg_avapoll, | ||||
b"avaproof": msg_avaproof, | |||||
b"avaresponse": msg_tcpavaresponse, | b"avaresponse": msg_tcpavaresponse, | ||||
b"avahello": msg_avahello, | b"avahello": msg_avahello, | ||||
b"block": msg_block, | b"block": msg_block, | ||||
b"blocktxn": msg_blocktxn, | b"blocktxn": msg_blocktxn, | ||||
b"cfcheckpt": msg_cfcheckpt, | b"cfcheckpt": msg_cfcheckpt, | ||||
b"cfheaders": msg_cfheaders, | b"cfheaders": msg_cfheaders, | ||||
b"cfilter": msg_cfilter, | b"cfilter": msg_cfilter, | ||||
b"cmpctblock": msg_cmpctblock, | b"cmpctblock": msg_cmpctblock, | ||||
▲ Show 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | def on_close(self): | ||||
pass | pass | ||||
def on_addr(self, message): pass | def on_addr(self, message): pass | ||||
def on_addrv2(self, message): pass | def on_addrv2(self, message): pass | ||||
def on_avapoll(self, message): pass | def on_avapoll(self, message): pass | ||||
def on_avaproof(self, message): pass | |||||
def on_avaresponse(self, message): pass | def on_avaresponse(self, message): pass | ||||
def on_avahello(self, message): pass | def on_avahello(self, message): pass | ||||
def on_block(self, message): pass | def on_block(self, message): pass | ||||
def on_blocktxn(self, message): pass | def on_blocktxn(self, message): pass | ||||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |