wallet: distinguish coinbase from other txes in show_transfers

This commit is contained in:
moneromooo-monero 2018-07-19 17:49:15 +01:00
parent 7d2d8055ac
commit 37f0799284
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 35 additions and 16 deletions

View file

@ -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());