Check whether this graph is oversized (contains a connected component whose number of * transactions exceeds max_cluster_count. */
| 98 | /** Check whether this graph is oversized (contains a connected component whose number of |
| 99 | * transactions exceeds max_cluster_count. */ |
| 100 | bool IsOversized() |
| 101 | { |
| 102 | if (!oversized.has_value()) { |
| 103 | // Only recompute when oversized isn't already known. |
| 104 | oversized = false; |
| 105 | for (auto component : GetComponents()) { |
| 106 | if (component.Count() > max_cluster_count) oversized = true; |
| 107 | uint64_t component_size{0}; |
| 108 | for (auto i : component) component_size += graph.FeeRate(i).size; |
| 109 | if (component_size > max_cluster_size) oversized = true; |
| 110 | } |
| 111 | } |
| 112 | return *oversized; |
| 113 | } |
| 114 | |
| 115 | void MakeModified(DepGraphIndex index) |
| 116 | { |
no test coverage detected