clusterlin: rename Intersect -> IntersectPrefixes

This makes it clearer what the function does.
This commit is contained in:
Pieter Wuille
2024-07-30 16:21:51 -04:00
parent 9774a958b5
commit 0e52728a2d
2 changed files with 7 additions and 7 deletions

View File

@@ -560,10 +560,10 @@ FUZZ_TARGET(clusterlin_linearization_chunking)
}
assert(combined == todo);
// Verify the expected properties of LinearizationChunking::Intersect:
auto intersect = chunking.Intersect(subset);
// Verify the expected properties of LinearizationChunking::IntersectPrefixes:
auto intersect = chunking.IntersectPrefixes(subset);
// - Intersecting again doesn't change the result.
assert(chunking.Intersect(intersect) == intersect);
assert(chunking.IntersectPrefixes(intersect) == intersect);
// - The intersection is topological.
TestBitSet intersect_anc;
for (auto idx : intersect.transactions) {