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

Method SumAll

src/test/fuzz/txgraph.cpp:124–131  ·  view source on GitHub ↗

Get the sum of all fees/sizes in the graph. */

Source from the content-addressed store, hash-verified

122
123 /** Get the sum of all fees/sizes in the graph. */
124 FeePerWeight SumAll() const
125 {
126 FeePerWeight ret;
127 for (auto i : graph.Positions()) {
128 ret += graph.FeeRate(i);
129 }
130 return ret;
131 }
132
133 /** Get the position where ref occurs in this simulated graph, or -1 if it does not. */
134 Pos Find(const TxGraph::Ref* ref) const

Callers 1

FUZZ_TARGETFunction · 0.80

Calls 1

FeeRateMethod · 0.80

Tested by

no test coverage detected