Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/p2p.py
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | from test_framework.messages import ( | ||||
msg_cfilter, | msg_cfilter, | ||||
msg_cmpctblock, | msg_cmpctblock, | ||||
msg_feefilter, | msg_feefilter, | ||||
msg_filteradd, | msg_filteradd, | ||||
msg_filterclear, | msg_filterclear, | ||||
msg_filterload, | msg_filterload, | ||||
msg_getaddr, | msg_getaddr, | ||||
msg_getavaaddr, | msg_getavaaddr, | ||||
msg_getavaproofs, | |||||
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_merkleblock, | msg_merkleblock, | ||||
Show All 40 Lines | MESSAGEMAP = { | ||||
b"cfilter": msg_cfilter, | b"cfilter": msg_cfilter, | ||||
b"cmpctblock": msg_cmpctblock, | b"cmpctblock": msg_cmpctblock, | ||||
b"feefilter": msg_feefilter, | b"feefilter": msg_feefilter, | ||||
b"filteradd": msg_filteradd, | b"filteradd": msg_filteradd, | ||||
b"filterclear": msg_filterclear, | b"filterclear": msg_filterclear, | ||||
b"filterload": msg_filterload, | b"filterload": msg_filterload, | ||||
b"getaddr": msg_getaddr, | b"getaddr": msg_getaddr, | ||||
b"getavaaddr": msg_getavaaddr, | b"getavaaddr": msg_getavaaddr, | ||||
b"getavaproofs": msg_getavaproofs, | |||||
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"merkleblock": msg_merkleblock, | b"merkleblock": msg_merkleblock, | ||||
▲ Show 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | class P2PInterface(P2PConnection): | ||||
def on_filterclear(self, message): pass | def on_filterclear(self, message): pass | ||||
def on_filterload(self, message): pass | def on_filterload(self, message): pass | ||||
def on_getaddr(self, message): pass | def on_getaddr(self, message): pass | ||||
def on_getavaaddr(self, message): pass | def on_getavaaddr(self, message): pass | ||||
def on_getavaproofs(self, message): pass | |||||
def on_getblocks(self, message): pass | def on_getblocks(self, message): pass | ||||
def on_getblocktxn(self, message): pass | def on_getblocktxn(self, message): pass | ||||
def on_getdata(self, message): pass | def on_getdata(self, message): pass | ||||
def on_getheaders(self, message): pass | def on_getheaders(self, message): pass | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |