| 56 | } |
| 57 | |
| 58 | uint32_t maxSizeTx2(Blockchain &chain, int start, int stop) { |
| 59 | auto extract = [](const Transaction &tx) { return tx.sizeBytes(); }; |
| 60 | auto combine = [](uint32_t &a, uint32_t &b) -> uint32_t & { a = std::max(a,b); return a; }; |
| 61 | |
| 62 | return chain[{start, stop}].mapReduce<uint32_t>(extract, combine); |
| 63 | } |
| 64 | |
| 65 | std::unordered_map<int64_t, int64_t> getOutputDistribution1(Blockchain &chain, int start, int stop) { |
| 66 |
nothing calls this directly
no outgoing calls
no test coverage detected