aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-19 17:49:15 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-03 12:48:16 +0000
commit37f07992846ce0b07b872e5f2c61fc65930de06d (patch)
tree36ff3611f3e4d6868ef88ac82adc9de4df781cb7 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4117 (diff)
downloadmonero-37f07992846ce0b07b872e5f2c61fc65930de06d.tar.xz
wallet: distinguish coinbase from other txes in show_transfers
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index b9cf99635..e49032dad 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -270,7 +270,7 @@ namespace tools
entry.unlock_time = pd.m_unlock_time;
entry.fee = pd.m_fee;
entry.note = m_wallet->get_tx_note(pd.m_tx_hash);
- entry.type = "in";
+ entry.type = pd.m_coinbase ? "block" : "in";
entry.subaddr_index = pd.m_subaddr_index;
entry.address = m_wallet->get_subaddress_as_str(pd.m_subaddr_index);
set_confirmations(entry, m_wallet->get_blockchain_current_height(), m_wallet->get_last_block_reward());