| 415 | } |
| 416 | |
| 417 | int64_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 | |
| 431 | void CleanTransactionLocksList() { |
| 432 | if (chainActive.Tip() == NULL) return; |
no test coverage detected