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

Method MakeSet

src/test/fuzz/txgraph.cpp:234–243  ·  view source on GitHub ↗

Construct the set with all positions in this graph corresponding to the specified * TxGraph::Refs. All of them must occur in this graph and not be removed. */

Source from the content-addressed store, hash-verified

232 /** Construct the set with all positions in this graph corresponding to the specified
233 * TxGraph::Refs. All of them must occur in this graph and not be removed. */
234 SetType MakeSet(std::span<TxGraph::Ref* const> arg)
235 {
236 SetType ret;
237 for (TxGraph::Ref* ptr : arg) {
238 auto pos = Find(ptr);
239 assert(pos != Pos(-1));
240 ret.Set(pos);
241 }
242 return ret;
243 }
244
245 /** Get the set of ancestors (desc=false) or descendants (desc=true) in this graph. */
246 SetType GetAncDesc(TxGraph::Ref* arg, bool desc)

Callers 1

FUZZ_TARGETFunction · 0.80

Calls 2

FindFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected