@@ -139,7 +139,7 @@ BOOST_AUTO_TEST_CASE(package_sanitization_tests)
139139 package_too_many.emplace_back (create_placeholder_tx (1 , 1 ));
140140 }
141141 PackageValidationState state_too_many;
142- BOOST_CHECK (!IsWellFormedPackage (package_too_many, state_too_many, /* require_sorted= */ true ));
142+ BOOST_CHECK (!IsWellFormedPackage (package_too_many, state_too_many));
143143 BOOST_CHECK_EQUAL (state_too_many.GetResult (), PackageValidationResult::PCKG_POLICY);
144144 BOOST_CHECK_EQUAL (state_too_many.GetRejectReason (), " package-too-many-transactions" );
145145
@@ -154,7 +154,7 @@ BOOST_AUTO_TEST_CASE(package_sanitization_tests)
154154 }
155155 BOOST_CHECK (package_too_large.size () <= MAX_PACKAGE_COUNT);
156156 PackageValidationState state_too_large;
157- BOOST_CHECK (!IsWellFormedPackage (package_too_large, state_too_large, /* require_sorted= */ true ));
157+ BOOST_CHECK (!IsWellFormedPackage (package_too_large, state_too_large));
158158 BOOST_CHECK_EQUAL (state_too_large.GetResult (), PackageValidationResult::PCKG_POLICY);
159159 BOOST_CHECK_EQUAL (state_too_large.GetRejectReason (), " package-too-large" );
160160
@@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(package_sanitization_tests)
165165 package_duplicate_txids_empty.emplace_back (MakeTransactionRef (empty_tx));
166166 }
167167 PackageValidationState state_duplicates;
168- BOOST_CHECK (!IsWellFormedPackage (package_duplicate_txids_empty, state_duplicates, /* require_sorted= */ true ));
168+ BOOST_CHECK (!IsWellFormedPackage (package_duplicate_txids_empty, state_duplicates));
169169 BOOST_CHECK_EQUAL (state_duplicates.GetResult (), PackageValidationResult::PCKG_POLICY);
170170 BOOST_CHECK_EQUAL (state_duplicates.GetRejectReason (), " package-contains-duplicates" );
171171 BOOST_CHECK (!IsConsistentPackage (package_duplicate_txids_empty));
@@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(package_sanitization_tests)
184184 // Transactions are considered sorted when they have no dependencies.
185185 BOOST_CHECK (IsTopoSortedPackage (package_conflicts));
186186 PackageValidationState state_conflicts;
187- BOOST_CHECK (!IsWellFormedPackage (package_conflicts, state_conflicts, /* require_sorted= */ true ));
187+ BOOST_CHECK (!IsWellFormedPackage (package_conflicts, state_conflicts));
188188 BOOST_CHECK_EQUAL (state_conflicts.GetResult (), PackageValidationResult::PCKG_POLICY);
189189 BOOST_CHECK_EQUAL (state_conflicts.GetRejectReason (), " conflict-in-package" );
190190
@@ -274,8 +274,8 @@ BOOST_AUTO_TEST_CASE(noncontextual_package_tests)
274274 CTransactionRef tx_child = MakeTransactionRef (mtx_child);
275275
276276 PackageValidationState state;
277- BOOST_CHECK (IsWellFormedPackage ({tx_parent, tx_child}, state, /* require_sorted= */ true ));
278- BOOST_CHECK (!IsWellFormedPackage ({tx_child, tx_parent}, state, /* require_sorted= */ true ));
277+ BOOST_CHECK (IsWellFormedPackage ({tx_parent, tx_child}, state));
278+ BOOST_CHECK (!IsWellFormedPackage ({tx_child, tx_parent}, state));
279279 BOOST_CHECK_EQUAL (state.GetResult (), PackageValidationResult::PCKG_POLICY);
280280 BOOST_CHECK_EQUAL (state.GetRejectReason (), " package-not-sorted" );
281281 BOOST_CHECK (IsChildWithParents ({tx_parent, tx_child}));
@@ -308,7 +308,7 @@ BOOST_AUTO_TEST_CASE(noncontextual_package_tests)
308308 package.push_back (MakeTransactionRef (child));
309309
310310 PackageValidationState state;
311- BOOST_CHECK (IsWellFormedPackage (package, state, /* require_sorted= */ true ));
311+ BOOST_CHECK (IsWellFormedPackage (package, state));
312312 BOOST_CHECK (IsChildWithParents (package));
313313 BOOST_CHECK (IsChildWithParentsTree (package));
314314
@@ -346,8 +346,8 @@ BOOST_AUTO_TEST_CASE(noncontextual_package_tests)
346346 BOOST_CHECK (!IsChildWithParentsTree ({tx_parent, tx_parent_also_child, tx_child}));
347347 // IsChildWithParents does not detect unsorted parents.
348348 BOOST_CHECK (IsChildWithParents ({tx_parent_also_child, tx_parent, tx_child}));
349- BOOST_CHECK (IsWellFormedPackage ({tx_parent, tx_parent_also_child, tx_child}, state, /* require_sorted= */ true ));
350- BOOST_CHECK (!IsWellFormedPackage ({tx_parent_also_child, tx_parent, tx_child}, state, /* require_sorted= */ true ));
349+ BOOST_CHECK (IsWellFormedPackage ({tx_parent, tx_parent_also_child, tx_child}, state));
350+ BOOST_CHECK (!IsWellFormedPackage ({tx_parent_also_child, tx_parent, tx_child}, state));
351351 BOOST_CHECK_EQUAL (state.GetResult (), PackageValidationResult::PCKG_POLICY);
352352 BOOST_CHECK_EQUAL (state.GetRejectReason (), " package-not-sorted" );
353353 }
0 commit comments