aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_filter.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-13 21:39:19 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-04-13 21:38:29 -0400
commitfa4c29bc1d2425f861845bae4f3816d9817e622a (patch)
treef4ee69845cafc999f6a8ab5ab5d1c3c8007fe17d /test/functional/p2p_filter.py
parent6ef45bc9688412da9e13218e08f802125bf589c0 (diff)
downloadbitcoin-fa4c29bc1d2425f861845bae4f3816d9817e622a.tar.xz
test: Add various low-level p2p tests
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-xtest/functional/p2p_filter.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py
index b73d5784aa..2eeb03bfaa 100755
--- a/test/functional/p2p_filter.py
+++ b/test/functional/p2p_filter.py
@@ -60,8 +60,13 @@ class FilterTest(BitcoinTestFramework):
self.skip_if_no_wallet()
def run_test(self):
- self.log.info('Add filtered P2P connection to the node')
filter_node = self.nodes[0].add_p2p_connection(FilterNode())
+
+ self.log.info('Check that too large filter is rejected')
+ with self.nodes[0].assert_debug_log(['Misbehaving']):
+ filter_node.send_and_ping(msg_filterload(data=b'\xaa', nHashFuncs=51, nTweak=0, nFlags=1))
+
+ self.log.info('Add filtered P2P connection to the node')
filter_node.send_and_ping(filter_node.watch_filter_init)
filter_address = self.nodes[0].decodescript(filter_node.watch_script_pubkey)['addresses'][0]