Skip to content

Commit

Permalink
add total balance to SimpleWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
blakelapierre committed Feb 11, 2018
1 parent 7fcc6ad commit 1382baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SimpleWallet/SimpleWallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,8 @@ bool simple_wallet::export_keys(const std::vector<std::string>& args/* = std::ve

bool simple_wallet::show_balance(const std::vector<std::string>& args/* = std::vector<std::string>()*/) {
success_msg_writer() << "available balance: " << m_currency.formatAmount(m_wallet->actualBalance()) <<
", locked amount: " << m_currency.formatAmount(m_wallet->pendingBalance());
", locked amount: " << m_currency.formatAmount(m_wallet->pendingBalance()) <<
", total amount: " << m_currency.formatAmount(m_wallet->actualBalance() + m_wallet->pendingBalance());

return true;
}
Expand Down

0 comments on commit 1382baa

Please sign in to comment.