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

Function calculateMaxInputSingleThreaded

benchmark/main.cpp:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int64_t calculateMaxInputSingleThreaded(BlockRange &chain) {
170 int64_t curMax = 0;
171 for (auto block : chain) {
172 RANGES_FOR(auto tx, block) {
173 for (auto input : tx.inputs()) {
174 curMax = std::max(curMax, input.getValue());
175 }
176 }
177 }
178 return curMax;
179}
180
181int64_t calculateMaxInputMultithreaded(BlockRange &chain) {
182 auto extract = [&](const Transaction &tx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected