| 141 | } |
| 142 | |
| 143 | int64_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 | |
| 155 | int64_t calculateMaxOutputMultithreaded(BlockRange &chain) { |
| 156 | auto extract = [](const Transaction &tx) { |
nothing calls this directly
no outgoing calls
no test coverage detected