| 186 | } |
| 187 | |
| 188 | bool CCryptoKeyStore::SetCrypted() |
| 189 | { |
| 190 | LOCK(cs_KeyStore); |
| 191 | if (fUseCrypto) |
| 192 | return true; |
| 193 | if (!mapKeys.empty()) |
| 194 | return false; |
| 195 | fUseCrypto = true; |
| 196 | return true; |
| 197 | } |
| 198 | |
| 199 | bool CCryptoKeyStore::IsLocked() const |
| 200 | { |
no test coverage detected