diff options
Diffstat (limited to 'src/db.h')
| -rw-r--r-- | src/db.h | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -409,6 +409,13 @@ bool LoadWallet(); | |||
| 409 | // address created after this call are not spendable from the file it writes. | 409 | // address created after this call are not spendable from the file it writes. |
| 410 | bool BackupWallet(const string& strDest); | 410 | bool BackupWallet(const string& strDest); |
| 411 | 411 | ||
| 412 | // Plain-text key export/import: no Berkeley DB, no environment, no version | ||
| 413 | // coupling. What you fall back on when wallet.dat itself will not cooperate. | ||
| 414 | // DumpWallet refuses to overwrite an existing file and writes owner-only on | ||
| 415 | // POSIX -- the output holds private keys in the clear. | ||
| 416 | bool DumpWallet(const string& strDest); | ||
| 417 | bool ImportWallet(const string& strSrc, int& nAddedRet, int& nSkippedRet); | ||
| 418 | |||
| 412 | inline bool SetAddressBookName(const string& strAddress, const string& strName) | 419 | inline bool SetAddressBookName(const string& strAddress, const string& strName) |
| 413 | { | 420 | { |
| 414 | return CWalletDB().WriteName(strAddress, strName); | 421 | return CWalletDB().WriteName(strAddress, strName); |