upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 987786c..22efc77 100644
--- a/src/db.h
+++ b/src/db.h
@@ -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.
410bool BackupWallet(const string& strDest); 410bool 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.
416bool DumpWallet(const string& strDest);
417bool ImportWallet(const string& strSrc, int& nAddedRet, int& nSkippedRet);
418
412inline bool SetAddressBookName(const string& strAddress, const string& strName) 419inline bool SetAddressBookName(const string& strAddress, const string& strName)
413{ 420{
414 return CWalletDB().WriteName(strAddress, strName); 421 return CWalletDB().WriteName(strAddress, strName);