mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 13:17:49 +02:00
scripted-diff: (refactor) ClusterIndex -> DepGraphIndex
Since cluster_linearize.h does not actually have a Cluster type anymore, it is more appropriate to rename the index type to DepGraphIndex. -BEGIN VERIFY SCRIPT- sed -i 's/Data type to represent transaction indices in clusters./Data type to represent transaction indices in DepGraphs and the clusters they represent./' $(git grep -l 'using ClusterIndex') sed -i 's|\<ClusterIndex\>|DepGraphIndex|g' $(git grep -l 'ClusterIndex') -END VERIFY SCRIPT-
This commit is contained in:
@@ -28,11 +28,11 @@ void TestDepGraphSerialization(const std::vector<std::pair<FeeFrac, SetType>>& c
|
||||
// Construct DepGraph from cluster argument.
|
||||
DepGraph<SetType> depgraph;
|
||||
SetType holes;
|
||||
for (ClusterIndex i = 0; i < cluster.size(); ++i) {
|
||||
for (DepGraphIndex i = 0; i < cluster.size(); ++i) {
|
||||
depgraph.AddTransaction(cluster[i].first);
|
||||
if (cluster[i] == HOLE) holes.Set(i);
|
||||
}
|
||||
for (ClusterIndex i = 0; i < cluster.size(); ++i) {
|
||||
for (DepGraphIndex i = 0; i < cluster.size(); ++i) {
|
||||
depgraph.AddDependencies(cluster[i].second, i);
|
||||
}
|
||||
depgraph.RemoveTransactions(holes);
|
||||
|
||||
Reference in New Issue
Block a user