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

This commit is contained in:
Sebastian Falbesoner
2022-08-09 15:04:59 +02:00
parent 0fda1c7df6
commit b4a5ab96b4
3 changed files with 13 additions and 8 deletions

View File

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