wallet: add interface for storing generic data on destinations

This commit is contained in:
Wladimir J. van der Laan
2013-11-18 16:55:54 +01:00
committed by Cozz Lovan
parent dd7c1cf534
commit b10e147096
4 changed files with 92 additions and 0 deletions

View File

@@ -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: