diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-08-09 15:04:59 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-08-09 15:22:38 +0200 |
commit | b4a5ab96b42957a0e2110525b9e2e450deda09c1 (patch) | |
tree | 0ee38e783c9bd7f6167f5eebcdbc49794398a970 /test/functional/test_framework/messages.py | |
parent | 0fda1c7df6165a60f63ced139ed10169f5df55f8 (diff) | |
download | bitcoin-b4a5ab96b42957a0e2110525b9e2e450deda09c1.tar.xz |
test: refactor: deduplicate `DEFAULT_{ANCESTOR,DESCENDANT}_LIMIT` constants
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-x | test/functional/test_framework/messages.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index 4a68312379..b323c52e5e 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -65,6 +65,9 @@ FILTER_TYPE_BASIC = 0 WITNESS_SCALE_FACTOR = 4 +DEFAULT_ANCESTOR_LIMIT = 25 # default max number of in-mempool ancestors +DEFAULT_DESCENDANT_LIMIT = 25 # default max number of in-mempool descendants + def sha256(s): return hashlib.sha256(s).digest() |