X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwalletdb.cpp;h=640f78b993dd2da355cdf4b8bc84325c1d5a587f;hp=e44885da6816da508c9ee5d16e47d8f3d519a287;hb=1d40b6207e7d1591c47cce149aae84bb60dcc416;hpb=fd7b67828ddfb69d1c42dd969b807b74790b7260 diff --git a/src/walletdb.cpp b/src/walletdb.cpp index e44885d..640f78b 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -311,9 +311,9 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, ssValue >> vchSecret; CMalleableKeyView keyView(strKeyView); - if (!pwallet->LoadMalleableKey(keyView, vchSecret)) + if (!pwallet->LoadKey(keyView, vchSecret)) { - strErr = "Error reading wallet database: LoadMalleableKey failed"; + strErr = "Error reading wallet database: LoadKey failed"; return false; } } @@ -326,9 +326,9 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, ssValue >> vchCryptedSecret; CMalleableKeyView keyView(strKeyView); - if (!pwallet->LoadCryptedMalleableKey(keyView, vchCryptedSecret)) + if (!pwallet->LoadCryptedKey(keyView, vchCryptedSecret)) { - strErr = "Error reading wallet database: LoadCryptedMalleableKey failed"; + strErr = "Error reading wallet database: LoadCryptedKey failed"; return false; } } @@ -940,7 +940,7 @@ bool ImportWallet(CWallet *pwallet, const string& strLocation) } printf("Importing %s...\n", addr.ToString().c_str()); - if (!pwallet->AddMalleableKey(mKey)) { + if (!pwallet->AddKey(mKey)) { fGood = false; continue; }