From 64e952650990c0542caeba198434ae706de13ee1 Mon Sep 17 00:00:00 2001 From: dsc Date: Sat, 19 Sep 2020 22:17:44 +0200 Subject: Extend TransactionInfo with coinbase and description attributes in wallet/api --- src/wallet/api/transaction_info.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/wallet/api/transaction_info.cpp') 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 TransactionInfoImpl::subaddrIndex() const { return m_subaddrIndex; -- cgit v1.2.3