diff options
Diffstat (limited to 'src/db.h')
| -rw-r--r-- | src/db.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -403,6 +403,12 @@ public: | |||
| 403 | 403 | ||
| 404 | bool LoadWallet(); | 404 | bool LoadWallet(); |
| 405 | 405 | ||
| 406 | // Writes a wallet.dat that opens on its own, anywhere -- see the definition in | ||
| 407 | // db.cpp for why a plain file copy does not. Still a point-in-time snapshot: | ||
| 408 | // keys are made as needed rather than derived from a seed, so coins paid to an | ||
| 409 | // address created after this call are not spendable from the file it writes. | ||
| 410 | bool BackupWallet(const string& strDest); | ||
| 411 | |||
| 406 | inline bool SetAddressBookName(const string& strAddress, const string& strName) | 412 | inline bool SetAddressBookName(const string& strAddress, const string& strName) |
| 407 | { | 413 | { |
| 408 | return CWalletDB().WriteName(strAddress, strName); | 414 | return CWalletDB().WriteName(strAddress, strName); |