Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/p2p.py
| Show All 35 Lines | from test_framework.messages import ( | ||||
| NODE_NETWORK, | NODE_NETWORK, | ||||
| CBlockHeader, | CBlockHeader, | ||||
| msg_addr, | msg_addr, | ||||
| msg_addrv2, | msg_addrv2, | ||||
| msg_avahello, | msg_avahello, | ||||
| msg_avapoll, | msg_avapoll, | ||||
| msg_avaproof, | msg_avaproof, | ||||
| msg_avaproofs, | msg_avaproofs, | ||||
| msg_avaproofsreq, | |||||
| msg_block, | msg_block, | ||||
| msg_blocktxn, | msg_blocktxn, | ||||
| msg_cfcheckpt, | msg_cfcheckpt, | ||||
| msg_cfheaders, | msg_cfheaders, | ||||
| msg_cfilter, | msg_cfilter, | ||||
| msg_cmpctblock, | msg_cmpctblock, | ||||
| msg_feefilter, | msg_feefilter, | ||||
| msg_filteradd, | msg_filteradd, | ||||
| Show All 40 Lines | |||||
| P2P_VERSION_RELAY = 1 | P2P_VERSION_RELAY = 1 | ||||
| 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"avaproof": msg_avaproof, | ||||
| b"avaproofs": msg_avaproofs, | b"avaproofs": msg_avaproofs, | ||||
| b"avaproofsreq": msg_avaproofsreq, | |||||
| 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 325 Lines • ▼ Show 20 Lines | class P2PInterface(P2PConnection): | ||||
| 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_avaproof(self, message): pass | ||||
| def on_avaproofs(self, message): pass | def on_avaproofs(self, message): pass | ||||
| def on_avaproofsreq(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 454 Lines • Show Last 20 Lines | |||||