diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-01-12 18:23:23 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-12 18:25:34 +0100 |
commit | db56a03ff2820f85da21c3c8fc4cc60e64c5b88d (patch) | |
tree | b6e8c3a583171deb841ab0366f977be833bcc8e4 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1542 (diff) | |
download | monero-db56a03ff2820f85da21c3c8fc4cc60e64c5b88d.tar.xz |
Wallet2 + API: Callbacks for unconfirmed transfers
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index fcb4ef2e8..75f5d413d 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -112,6 +112,7 @@ struct TransactionInfo virtual uint64_t amount() const = 0; virtual uint64_t fee() const = 0; virtual uint64_t blockHeight() const = 0; + virtual uint64_t confirmations() const = 0; //! transaction_id virtual std::string hash() const = 0; virtual std::time_t timestamp() const = 0; @@ -194,6 +195,13 @@ struct WalletListener * @param amount - amount */ virtual void moneyReceived(const std::string &txId, uint64_t amount) = 0; + + /** + * @brief unconfirmedMoneyReceived - called when payment arrived in tx pool + * @param txId - transaction id + * @param amount - amount + */ + virtual void unconfirmedMoneyReceived(const std::string &txId, uint64_t amount) = 0; /** * @brief newBlock - called when new block received |