MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ExtractTransactions

Method ExtractTransactions

src/txgraph.cpp:973–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971}
972
973void 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
987void SingletonClusterImpl::ExtractTransactions(const std::function<void (DepGraphIndex, GraphIndex, FeePerWeight)>& visit1_fn, const std::function<void (DepGraphIndex, GraphIndex, SetType)>& visit2_fn) noexcept
988{

Callers 1

MergeMethod · 0.80

Calls 3

FeeRateMethod · 0.80
GetReducedParentsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected