diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:45:54 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:45:54 +0200 |
commit | af2ceb29fa5c569714b12d97a206759d5184ee78 (patch) | |
tree | 42589e81c1e9422a8fd4a069ee22e7458407ecf0 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1297 (diff) | |
parent | wallet2_api: add API for tx notes (diff) | |
download | monero-af2ceb29fa5c569714b12d97a206759d5184ee78.tar.xz |
Merge pull request #1298
97288a5 wallet2_api: add API for tx notes (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 088af1719..bdea8b22c 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -65,6 +65,7 @@ struct PendingTransaction virtual uint64_t amount() const = 0; virtual uint64_t dust() const = 0; virtual uint64_t fee() const = 0; + virtual std::vector<std::string> txid() const = 0; }; /** @@ -340,6 +341,20 @@ struct Wallet * \param arg */ virtual void setDefaultMixin(uint32_t arg) = 0; + + /*! + * \brief setUserNote - attach an arbitrary string note to a txid + * \param txid - the transaction id to attach the note to + * \param note - the note + * \return true if succesful, false otherwise + */ + virtual bool setUserNote(const std::string &txid, const std::string ¬e) = 0; + /*! + * \brief getUserNote - return an arbitrary string note attached to a txid + * \param txid - the transaction id to attach the note to + * \return the attached note, or empty string if there is none + */ + virtual std::string getUserNote(const std::string &txid) const = 0; }; /** |