diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-08-15 17:23:56 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-08-15 17:23:56 -0500 |
commit | 5e795ee7afaa1cd08edefc3c6f716e6455ca825a (patch) | |
tree | 705ea1ee50af7daa4b477ee13872c522da545e4d /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #4150 (diff) | |
parent | wallet: distinguish coinbase from other txes in show_transfers (diff) | |
download | monero-5e795ee7afaa1cd08edefc3c6f716e6455ca825a.tar.xz |
Merge pull request #4153
37f0799 wallet: distinguish coinbase from other txes in show_transfers (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
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()); |