| 110 | } |
| 111 | |
| 112 | int64_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 | |
| 125 | int64_t maxValOutput2(Blockchain &chain, int start, int stop) { |
| 126 | auto extract = [](const Transaction &tx) { |
nothing calls this directly
no outgoing calls
no test coverage detected