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

@@ -7,6 +7,9 @@
size.
"""
from test_framework.messages import (
DEFAULT_ANCESTOR_LIMIT,
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
@@ -15,10 +18,6 @@ from test_framework.util import (
from test_framework.wallet import MiniWallet
DEFAULT_ANCESTOR_LIMIT = 25
DEFAULT_DESCENDANT_LIMIT = 25
class MempoolPackagesTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1