Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_blockfilters.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2019 The Bitcoin Core developers | # Copyright (c) 2019 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. | ||||
"""Tests NODE_COMPACT_FILTERS (BIP 157/158). | """Tests NODE_COMPACT_FILTERS (BIP 157/158). | ||||
Tests that a node configured with -blockfilterindex and -peerblockfilters can serve | Tests that a node configured with -blockfilterindex and -peerblockfilters can serve | ||||
cfheaders and cfcheckpts. | cfilters, cfheaders and cfcheckpts. | ||||
""" | """ | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
FILTER_TYPE_BASIC, | FILTER_TYPE_BASIC, | ||||
hash256, | hash256, | ||||
msg_getcfcheckpt, | msg_getcfcheckpt, | ||||
msg_getcfheaders, | msg_getcfheaders, | ||||
msg_getcfilters, | msg_getcfilters, | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |