X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=3ffad27e82db00c10e33b017cc22dee786fe78d9;hp=3cce33608f89c8852f3f7e7745c04c7d18561dfc;hb=3b36da6d277c6f5ad671343e724e0336ce55c893;hpb=087fc28f7d4e82a0b79dabbaa19358e48d3084fe diff --git a/src/wallet.cpp b/src/wallet.cpp index 3cce336..3ffad27 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -164,7 +164,8 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) if (fFileBacked) { pwalletdbEncryption = new CWalletDB(strWalletFile); - pwalletdbEncryption->TxnBegin(); + if (!pwalletdbEncryption->TxnBegin()) + return false; pwalletdbEncryption->WriteMasterKey(nMasterKeyMaxID, kMasterKey); }