| 827 | } |
| 828 | |
| 829 | bool LegacyScriptPubKeyMan::LoadCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret, bool checksum_valid) |
| 830 | { |
| 831 | // Set fDecryptionThoroughlyChecked to false when the checksum is invalid |
| 832 | if (!checksum_valid) { |
| 833 | fDecryptionThoroughlyChecked = false; |
| 834 | } |
| 835 | |
| 836 | return AddCryptedKeyInner(vchPubKey, vchCryptedSecret); |
| 837 | } |
| 838 | |
| 839 | bool LegacyScriptPubKeyMan::AddCryptedKeyInner(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret) |
| 840 | { |