| 105 | return result; |
| 106 | } |
| 107 | void GetKeys(set<CKeyID> &setAddress, bool bFlag = false) const { |
| 108 | setAddress.clear(); |
| 109 | { |
| 110 | LOCK(cs_KeyStore); |
| 111 | KeyMap::const_iterator mi = mapKeys.begin(); |
| 112 | while (mi != mapKeys.end()) { |
| 113 | if (!bFlag) // return all address in wallet |
| 114 | setAddress.insert((*mi).first); |
| 115 | else if (mi->second.HaveMinerKey() || |
| 116 | mi->second.HasMainKey()) // only return satisfied mining address |
| 117 | setAddress.insert((*mi).first); |
| 118 | |
| 119 | mi++; |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | bool GetKey(const CKeyID &keyid, CKey &keyOut, bool fMiner = false) const { |
| 125 | LOCK(cs_KeyStore); |
nothing calls this directly
no test coverage detected