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

Method IsReadyForColdMining

src/wallet/wallet.cpp:594–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594bool 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
605bool CWallet::DropMainKeysForColdMining() {
606 for (auto &item : mapKeys) {

Callers 1

dropminermainkeysFunction · 0.80

Calls 2

HaveMinerKeyMethod · 0.80
GetRegIdMethod · 0.45

Tested by

no test coverage detected