test: refactor: deduplicate DEFAULT_{ANCESTOR,DESCENDANT}_LIMIT constants
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user