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

Function calculateMaxOutputSingleThreaded

benchmark/main.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int64_t calculateMaxOutputSingleThreaded(BlockRange &chain) {
144 int64_t curMax = 0;
145 for (auto block : chain) {
146 RANGES_FOR(auto tx, block) {
147 for (auto output : tx.outputs()) {
148 curMax = std::max(curMax, output.getValue());
149 }
150 }
151 }
152 return curMax;
153}
154
155int64_t calculateMaxOutputMultithreaded(BlockRange &chain) {
156 auto extract = [](const Transaction &tx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected