This PR adds a few tests that are bloomfilter-related, including behavior for when bloomfilters are turned off:
- Tests p2p message
msg_mempool
: a node that haspeerbloomfilters
enabled should send its mempool (disabled behavior already tested here). - Tests that bloomfilter peers with
fRelay=False
in theversion
message should not receive any invs until they set the filter. The rest is the same as whatโs already tested inp2p_filter.py
. - Tests that peers get disconnected if they send
filterload
orfilteradd
p2p messages to a node with bloom filters disabled. - Refactor: renames p2p_mempool.py to p2p_nobloomfilter_messages.py.
- Fixes race conditions in p2p_filter.py