MCPcopy Create free account
hub / github.com/citp/BlockSci / maxValOutput1

Function maxValOutput1

example/performance.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int64_t maxValOutput1(Blockchain &chain, int start, int stop) {
113 int64_t maxValue = 0;
114 for (int height = start; height < stop; height++) {
115 auto block = chain[height];
116 RANGES_FOR(auto tx, block) {
117 RANGES_FOR(auto output, tx.outputs()) {
118 maxValue = std::max(maxValue, output.getValue());
119 }
120 }
121 }
122 return maxValue;
123}
124
125int64_t maxValOutput2(Blockchain &chain, int start, int stop) {
126 auto extract = [](const Transaction &tx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected