Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/mininode.py
Show All 33 Lines | from test_framework.messages import ( | ||||
msg_getaddr, | msg_getaddr, | ||||
msg_getblocks, | msg_getblocks, | ||||
msg_getblocktxn, | msg_getblocktxn, | ||||
msg_getdata, | msg_getdata, | ||||
msg_getheaders, | msg_getheaders, | ||||
msg_headers, | msg_headers, | ||||
msg_inv, | msg_inv, | ||||
msg_mempool, | msg_mempool, | ||||
msg_notfound, | |||||
msg_ping, | msg_ping, | ||||
msg_pong, | msg_pong, | ||||
msg_reject, | msg_reject, | ||||
msg_sendcmpct, | msg_sendcmpct, | ||||
msg_sendheaders, | msg_sendheaders, | ||||
msg_tx, | msg_tx, | ||||
MSG_TX, | MSG_TX, | ||||
MSG_TYPE_MASK, | MSG_TYPE_MASK, | ||||
Show All 16 Lines | MESSAGEMAP = { | ||||
b"getaddr": msg_getaddr, | b"getaddr": msg_getaddr, | ||||
b"getblocks": msg_getblocks, | b"getblocks": msg_getblocks, | ||||
b"getblocktxn": msg_getblocktxn, | b"getblocktxn": msg_getblocktxn, | ||||
b"getdata": msg_getdata, | b"getdata": msg_getdata, | ||||
b"getheaders": msg_getheaders, | b"getheaders": msg_getheaders, | ||||
b"headers": msg_headers, | b"headers": msg_headers, | ||||
b"inv": msg_inv, | b"inv": msg_inv, | ||||
b"mempool": msg_mempool, | b"mempool": msg_mempool, | ||||
b"notfound": msg_notfound, | |||||
b"ping": msg_ping, | b"ping": msg_ping, | ||||
b"pong": msg_pong, | b"pong": msg_pong, | ||||
b"reject": msg_reject, | b"reject": msg_reject, | ||||
b"sendcmpct": msg_sendcmpct, | b"sendcmpct": msg_sendcmpct, | ||||
b"sendheaders": msg_sendheaders, | b"sendheaders": msg_sendheaders, | ||||
b"tx": msg_tx, | b"tx": msg_tx, | ||||
b"verack": msg_verack, | b"verack": msg_verack, | ||||
b"version": msg_version, | b"version": msg_version, | ||||
▲ Show 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | class P2PInterface(P2PConnection): | ||||
def on_getdata(self, message): pass | def on_getdata(self, message): pass | ||||
def on_getheaders(self, message): pass | def on_getheaders(self, message): pass | ||||
def on_headers(self, message): pass | def on_headers(self, message): pass | ||||
def on_mempool(self, message): pass | def on_mempool(self, message): pass | ||||
def on_notfound(self, message): pass | |||||
def on_pong(self, message): pass | def on_pong(self, message): pass | ||||
def on_reject(self, message): pass | def on_reject(self, message): pass | ||||
def on_sendcmpct(self, message): pass | def on_sendcmpct(self, message): pass | ||||
def on_sendheaders(self, message): pass | def on_sendheaders(self, message): pass | ||||
▲ Show 20 Lines • Show All 293 Lines • Show Last 20 Lines |