mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Remove use of NULL in wallet.cpp
Also remove redundant "return false"
This commit is contained in:
parent
364cc42edb
commit
19b39167e8
@ -337,11 +337,10 @@ bool CWallet::AddKeyPubKeyWithDB(CWalletDB &walletdb, const CKey& secret, const
|
|||||||
pwalletdbEncryption = &walletdb;
|
pwalletdbEncryption = &walletdb;
|
||||||
}
|
}
|
||||||
if (!CCryptoKeyStore::AddKeyPubKey(secret, pubkey)) {
|
if (!CCryptoKeyStore::AddKeyPubKey(secret, pubkey)) {
|
||||||
if (needsDB) pwalletdbEncryption = NULL;
|
if (needsDB) pwalletdbEncryption = nullptr;
|
||||||
return false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (needsDB) pwalletdbEncryption = NULL;
|
if (needsDB) pwalletdbEncryption = nullptr;
|
||||||
// check if we need to remove from watch-only
|
// check if we need to remove from watch-only
|
||||||
CScript script;
|
CScript script;
|
||||||
script = GetScriptForDestination(pubkey.GetID());
|
script = GetScriptForDestination(pubkey.GetID());
|
||||||
|
Loading…
Reference in New Issue
Block a user