mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 18:02:44 +02:00
test: refactor: deduplicate DEFAULT_{ANCESTOR,DESCENDANT}_LIMIT
constants
This commit is contained in:
@@ -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