MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetAverageVoteTime

Function GetAverageVoteTime

src/instantx.cpp:417–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417int64_t GetAverageVoteTime() {
418 std::map<uint256, int64_t>::iterator it = mapUnknownVotes.begin();
419 int64_t total = 0;
420 int64_t count = 0;
421
422 while (it != mapUnknownVotes.end()) {
423 total += it->second;
424 count++;
425 it++;
426 }
427
428 return total / count;
429}
430
431void CleanTransactionLocksList() {
432 if (chainActive.Tip() == NULL) return;

Callers 1

ProcessInstantXFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected