diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-28 21:55:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 21:55:16 -0600 |
commit | 777838407192e5d9d2e186fd831a641ef3588885 (patch) | |
tree | a1545b754e3c515549ade5464c424802514035a5 /src/wallet/api/transaction_info.cpp | |
parent | Merge pull request #6829 (diff) | |
parent | Extend TransactionInfo with coinbase and description attributes in wallet/api (diff) | |
download | monero-777838407192e5d9d2e186fd831a641ef3588885.tar.xz |
Merge pull request #6830
64e9526 Extend TransactionInfo with coinbase and description attributes in wallet/api (dsc)
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; |