| 592 | } |
| 593 | |
| 594 | bool CWallet::IsReadyForColdMining(const CAccountDBCache &accountView) const { |
| 595 | CRegID regId; |
| 596 | for (auto const &item : mapKeys) { |
| 597 | if (item.second.HaveMinerKey() && accountView.GetRegId(item.first, regId)) { |
| 598 | return true; |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | return false; |
| 603 | } |
| 604 | |
| 605 | bool CWallet::DropMainKeysForColdMining() { |
| 606 | for (auto &item : mapKeys) { |
no test coverage detected