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

Method GetConflicts

src/txgraph.cpp:1171–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171void GenericClusterImpl::GetConflicts(const TxGraphImpl& graph, std::vector<Cluster*>& out) const noexcept
1172{
1173 for (auto i : m_linearization) {
1174 auto& entry = graph.m_entries[m_mapping[i]];
1175 // For every transaction Entry in this Cluster, if it also exists in a lower-level Cluster,
1176 // then that Cluster conflicts.
1177 if (entry.m_locator[0].IsPresent()) {
1178 out.push_back(entry.m_locator[0].cluster);
1179 }
1180 }
1181}
1182
1183void SingletonClusterImpl::GetConflicts(const TxGraphImpl& graph, std::vector<Cluster*>& out) const noexcept
1184{

Callers

nothing calls this directly

Calls 5

IsPresentMethod · 0.80
push_backMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected