Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_filter.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2020 The Bitcoin Core developers | # Copyright (c) 2020 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
""" | """ | ||||
Test BIP 37 | Test BIP 37 | ||||
""" | """ | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
CInv, | |||||
MAX_BLOOM_FILTER_SIZE, | MAX_BLOOM_FILTER_SIZE, | ||||
MAX_BLOOM_HASH_FUNCS, | MAX_BLOOM_HASH_FUNCS, | ||||
MSG_BLOCK, | MSG_BLOCK, | ||||
MSG_FILTERED_BLOCK, | MSG_FILTERED_BLOCK, | ||||
CInv, | |||||
msg_filteradd, | msg_filteradd, | ||||
msg_filterclear, | msg_filterclear, | ||||
msg_filterload, | msg_filterload, | ||||
msg_getdata, | msg_getdata, | ||||
msg_mempool, | msg_mempool, | ||||
msg_version, | msg_version, | ||||
) | ) | ||||
from test_framework.p2p import P2PInterface, p2p_lock | from test_framework.p2p import P2PInterface, p2p_lock | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |