| 971 | } |
| 972 | |
| 973 | void GenericClusterImpl::ExtractTransactions(const std::function<void (DepGraphIndex, GraphIndex, FeePerWeight)>& visit1_fn, const std::function<void (DepGraphIndex, GraphIndex, SetType)>& visit2_fn) noexcept |
| 974 | { |
| 975 | for (auto pos : m_linearization) { |
| 976 | visit1_fn(pos, m_mapping[pos], FeePerWeight::FromFeeFrac(m_depgraph.FeeRate(pos))); |
| 977 | } |
| 978 | for (auto pos : m_linearization) { |
| 979 | visit2_fn(pos, m_mapping[pos], m_depgraph.GetReducedParents(pos)); |
| 980 | } |
| 981 | // Purge this Cluster, now that everything has been moved. |
| 982 | m_depgraph = DepGraph<SetType>{}; |
| 983 | m_linearization.clear(); |
| 984 | m_mapping.clear(); |
| 985 | } |
| 986 | |
| 987 | void SingletonClusterImpl::ExtractTransactions(const std::function<void (DepGraphIndex, GraphIndex, FeePerWeight)>& visit1_fn, const std::function<void (DepGraphIndex, GraphIndex, SetType)>& visit2_fn) noexcept |
| 988 | { |
no test coverage detected