aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_package_onemore.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-08-09 15:04:59 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-08-09 15:22:38 +0200
commitb4a5ab96b42957a0e2110525b9e2e450deda09c1 (patch)
tree0ee38e783c9bd7f6167f5eebcdbc49794398a970 /test/functional/mempool_package_onemore.py
parent0fda1c7df6165a60f63ced139ed10169f5df55f8 (diff)
downloadbitcoin-b4a5ab96b42957a0e2110525b9e2e450deda09c1.tar.xz
test: refactor: deduplicate `DEFAULT_{ANCESTOR,DESCENDANT}_LIMIT` constants
Diffstat (limited to 'test/functional/mempool_package_onemore.py')
-rwxr-xr-xtest/functional/mempool_package_onemore.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/mempool_package_onemore.py b/test/functional/mempool_package_onemore.py
index 11e3adb700..9a981bd5a5 100755
--- a/test/functional/mempool_package_onemore.py
+++ b/test/functional/mempool_package_onemore.py
@@ -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