MCPcopy Create free account
hub / github.com/citp/BlockSci / maxSizeTx2

Function maxSizeTx2

example/performance.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58uint32_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
65std::unordered_map<int64_t, int64_t> getOutputDistribution1(Blockchain &chain, int start, int stop) {
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected