MCPcopy Create free account
hub / github.com/ElementsProject/elements / EntriesAndTxidsDisjoint

Function EntriesAndTxidsDisjoint

src/policy/rbf.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110std::optional<std::string> EntriesAndTxidsDisjoint(const CTxMemPool::setEntries& ancestors,
111 const std::set<uint256>& direct_conflicts,
112 const uint256& txid)
113{
114 for (CTxMemPool::txiter ancestorIt : ancestors) {
115 const uint256& hashAncestor = ancestorIt->GetTx().GetHash();
116 if (direct_conflicts.count(hashAncestor)) {
117 return strprintf("%s spends conflicting transaction %s",
118 txid.ToString(),
119 hashAncestor.ToString());
120 }
121 }
122 return std::nullopt;
123}
124
125std::optional<std::string> PaysMoreThanConflicts(const CTxMemPool::setEntries& iters_conflicting,
126 CFeeRate replacement_feerate,

Callers 1

PreChecksMethod · 0.85

Calls 4

GetTxMethod · 0.80
countMethod · 0.80
GetHashMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected