Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 794 Lines • ▼ Show 20 Lines | if (!crypter.Encrypt(_vMasterKey, kMasterKey.vchCryptedKey)) { | ||||
NewKeyPool(); | NewKeyPool(); | ||||
Lock(); | Lock(); | ||||
// Need to completely rewrite the wallet file; if we don't, bdb might | // Need to completely rewrite the wallet file; if we don't, bdb might | ||||
// keep bits of the unencrypted private key in slack space in the | // keep bits of the unencrypted private key in slack space in the | ||||
// database file. | // database file. | ||||
database->Rewrite(); | database->Rewrite(); | ||||
// BDB seems to have a bad habit of writing old data into | |||||
// slack space in .dat files; that is bad if the old data is | |||||
// unencrypted private keys. So: | |||||
database->ReloadDbEnv(); | |||||
} | } | ||||
NotifyStatusChanged(this); | NotifyStatusChanged(this); | ||||
return true; | return true; | ||||
} | } | ||||
DBErrors CWallet::ReorderTransactions() { | DBErrors CWallet::ReorderTransactions() { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
▲ Show 20 Lines • Show All 4,092 Lines • Show Last 20 Lines |