strErr = "Error reading wallet database: CPrivKey pubkey inconsistency";
return false;
}
- if (vchPubKey.size() == 33) {
- key.SetCompressedPubKey();
- }
+ key.SetCompressedPubKey(vchPubKey.IsCompressed());
if (!key.IsValid())
{
strErr = "Error reading wallet database: invalid CPrivKey";
strErr = "Error reading wallet database: CWalletKey pubkey inconsistency";
return false;
}
- if (vchPubKey.size() == 33) {
- key.SetCompressedPubKey();
- }
+ key.SetCompressedPubKey(vchPubKey.IsCompressed());
if (!key.IsValid())
{
strErr = "Error reading wallet database: invalid CWalletKey";
}
pcursor->close();
}
- catch (boost::thread_interrupted) {
+ catch (const boost::thread_interrupted&) {
throw;
}
catch (...) {