test: refactor: deduplicate DEFAULT_{ANCESTOR,DESCENDANT}_LIMIT constants

This commit is contained in:
Sebastian Falbesoner committed 2022-08-09 15:22:38 +02:00
1 parent 0fda1c7df6
commit b4a5ab96b4
3 files changed
+13 -8

No files matched your search

@@ -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()