diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-11-18 16:55:54 +0100 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-01-19 18:21:54 +0100 |
| commit | b10e147096b0e27fdff8c22029bc8b7a1a14f042 (patch) | |
| tree | deb52bf797444b448e79df495d4a98906407af44 /src/walletdb.h | |
| parent | Merge pull request #3551 (diff) | |
| download | discoin-b10e147096b0e27fdff8c22029bc8b7a1a14f042.tar.xz discoin-b10e147096b0e27fdff8c22029bc8b7a1a14f042.zip | |
wallet: add interface for storing generic data on destinations
Diffstat (limited to 'src/walletdb.h')
| -rw-r--r-- | src/walletdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/walletdb.h b/src/walletdb.h index 88ba89f9d..15af28724 100644 --- a/src/walletdb.h +++ b/src/walletdb.h @@ -124,6 +124,11 @@ public: bool ReadAccount(const std::string& strAccount, CAccount& account); bool WriteAccount(const std::string& strAccount, const CAccount& account); + + /// Write destination data key,value tuple to database + bool WriteDestData(const std::string &address, const std::string &key, const std::string &value); + /// Erase destination data tuple from wallet database + bool EraseDestData(const std::string &address, const std::string &key); private: bool WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry); public: |