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

Function maxSizeTx1

example/performance.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47uint32_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
58uint32_t maxSizeTx2(Blockchain &chain, int start, int stop) {
59 auto extract = [](const Transaction &tx) { return tx.sizeBytes(); };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected