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

Method TxCount

src/cluster_linearize.h:121–121  ·  view source on GitHub ↗

Get the number of transactions in the graph. Complexity: O(1). */

Source from the content-addressed store, hash-verified

119 DepGraphIndex PositionRange() const noexcept { return entries.size(); }
120 /** Get the number of transactions in the graph. Complexity: O(1). */
121 auto TxCount() const noexcept { return m_used.Count(); }
122 /** Get the feerate of a given transaction i. Complexity: O(1). */
123 const FeeFrac& FeeRate(DepGraphIndex i) const noexcept { return entries[i].feerate; }
124 /** Get the mutable feerate of a given transaction i. Complexity: O(1). */

Callers 11

DepGraphMethod · 0.80
SanityCheckMethod · 0.80
TestOptimalLinearizationFunction · 0.80
GetTransactionCountMethod · 0.80
AddTransactionMethod · 0.80
FUZZ_TARGETFunction · 0.80
SerMethod · 0.80
UnserMethod · 0.80
SanityCheckFunction · 0.80

Calls 1

CountMethod · 0.45

Tested by 7

TestOptimalLinearizationFunction · 0.64
GetTransactionCountMethod · 0.64
AddTransactionMethod · 0.64
FUZZ_TARGETFunction · 0.64
SerMethod · 0.64
UnserMethod · 0.64
SanityCheckFunction · 0.64