Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_mempool.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2016 The Bitcoin Core developers | # Copyright (c) 2015-2016 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 p2p mempool message. | |||||
Test that nodes are disconnected if they send mempool messages when bloom | |||||
filters are not enabled. | |||||
""" | |||||
from test_framework.messages import msg_mempool | from test_framework.messages import msg_mempool | ||||
from test_framework.mininode import network_thread_start, P2PInterface | from test_framework.mininode import network_thread_start, P2PInterface | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
class P2PMempoolTests(BitcoinTestFramework): | class P2PMempoolTests(BitcoinTestFramework): | ||||
Show All 21 Lines |