| 45 | } |
| 46 | |
| 47 | uint32_t maxSizeTx1(Blockchain &chain, int start, int stop) { |
| 48 | uint32_t max = 0; |
| 49 | for (int height = start; height < stop; height++) { |
| 50 | auto block = chain[height]; |
| 51 | RANGES_FOR(auto tx, block) { |
| 52 | max = std::max(max, tx.sizeBytes()); |
| 53 | } |
| 54 | } |
| 55 | return max; |
| 56 | } |
| 57 | |
| 58 | uint32_t maxSizeTx2(Blockchain &chain, int start, int stop) { |
| 59 | auto extract = [](const Transaction &tx) { return tx.sizeBytes(); }; |
nothing calls this directly
no outgoing calls
no test coverage detected