MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / DropMainKeysForColdMining

Method DropMainKeysForColdMining

src/wallet/wallet.cpp:605–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605bool 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
614CWallet::CWallet(string strWalletFileIn) {
615 SetNull();

Callers 1

dropminermainkeysFunction · 0.80

Calls 3

CWalletDBClass · 0.85
PurgeMainKeyMethod · 0.80
WriteKeyStoreValueMethod · 0.80

Tested by

no test coverage detected