| 603 | } |
| 604 | |
| 605 | bool CWallet::DropMainKeysForColdMining() { |
| 606 | for (auto &item : mapKeys) { |
| 607 | if (item.second.PurgeMainKey()) { |
| 608 | CWalletDB(strWalletFile).WriteKeyStoreValue(item.first, item.second, nWalletVersion); |
| 609 | } |
| 610 | } |
| 611 | return true; |
| 612 | } |
| 613 | |
| 614 | CWallet::CWallet(string strWalletFileIn) { |
| 615 | SetNull(); |
no test coverage detected