aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/messages.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-16 18:48:32 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-20 18:22:21 +0200
commitc7437185589926ec8def2af6bede6a407b3d2e4a (patch)
tree629a14263638c5b030e9d76afab328c85c7b7790 /test/functional/test_framework/messages.py
parentfc00e651e407200da1eb0ae61f6448e22d1b6d8d (diff)
downloadbitcoin-c7437185589926ec8def2af6bede6a407b3d2e4a.tar.xz
test: add further BIP37 size limit checks to p2p_filter.py
also unified method of detecting misbehaviour (using assert_debug_log instead of checking peer's banscore)
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-xtest/functional/test_framework/messages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py
index cf86e1bdf7..33fba1c69a 100755
--- a/test/functional/test_framework/messages.py
+++ b/test/functional/test_framework/messages.py
@@ -37,6 +37,8 @@ MY_RELAY = 1 # from version 70001 onwards, fRelay should be appended to version
MAX_LOCATOR_SZ = 101
MAX_BLOCK_BASE_SIZE = 1000000
+MAX_BLOOM_FILTER_SIZE = 36000
+MAX_BLOOM_HASH_FUNCS = 50
COIN = 100000000 # 1 btc in satoshis
MAX_MONEY = 21000000 * COIN