| 167 | } |
| 168 | |
| 169 | int64_t calculateMaxInputSingleThreaded(BlockRange &chain) { |
| 170 | int64_t curMax = 0; |
| 171 | for (auto block : chain) { |
| 172 | RANGES_FOR(auto tx, block) { |
| 173 | for (auto input : tx.inputs()) { |
| 174 | curMax = std::max(curMax, input.getValue()); |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | return curMax; |
| 179 | } |
| 180 | |
| 181 | int64_t calculateMaxInputMultithreaded(BlockRange &chain) { |
| 182 | auto extract = [&](const Transaction &tx) { |
nothing calls this directly
no outgoing calls
no test coverage detected