diff options
author | dsc <dsc@xmr.pm> | 2020-09-19 22:17:44 +0200 |
---|---|---|
committer | dsc <dsc@xmr.pm> | 2020-09-19 22:54:23 +0200 |
commit | 64e952650990c0542caeba198434ae706de13ee1 (patch) | |
tree | a74bfc26c913bf5baa069be25eecb090b0e0ef98 /src/wallet/api/transaction_info.cpp | |
parent | Merge pull request #6819 (diff) | |
download | monero-64e952650990c0542caeba198434ae706de13ee1.tar.xz |
Extend TransactionInfo with coinbase and description attributes in wallet/api
Diffstat (limited to 'src/wallet/api/transaction_info.cpp')
-rw-r--r-- | src/wallet/api/transaction_info.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/api/transaction_info.cpp b/src/wallet/api/transaction_info.cpp index 5ae3a6937..33e7856db 100644 --- a/src/wallet/api/transaction_info.cpp +++ b/src/wallet/api/transaction_info.cpp @@ -45,6 +45,7 @@ TransactionInfoImpl::TransactionInfoImpl() : m_direction(Direction_Out) , m_pending(false) , m_failed(false) + , m_coinbase(false) , m_amount(0) , m_fee(0) , m_blockheight(0) @@ -77,6 +78,11 @@ bool TransactionInfoImpl::isFailed() const return m_failed; } +bool TransactionInfoImpl::isCoinbase() const +{ + return m_coinbase; +} + uint64_t TransactionInfoImpl::amount() const { return m_amount; @@ -92,6 +98,11 @@ uint64_t TransactionInfoImpl::blockHeight() const return m_blockheight; } +std::string TransactionInfoImpl::description() const +{ + return m_description; +} + std::set<uint32_t> TransactionInfoImpl::subaddrIndex() const { return m_subaddrIndex; |