Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
coranos committed May 27, 2023
1 parent 402edde commit 5edbee7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,15 +932,15 @@ void nano::json_handler::accounts_balances ()
{
bool const include_only_confirmed = request.get<bool> ("include_only_confirmed", true);
auto balance = node.balance_pending (account, include_only_confirmed);
entry.put ("balance", balance.first.convert_to<std::string> ());
entry.put ("balance_decimal", convert_raw_to_dec (balance.first.convert_to<std::string> ()));
entry.put ("pending", balance.second.convert_to<std::string> ());
entry.put ("balance_decimal", convert_raw_to_dec (balance.second.convert_to<std::string> ()));
entry.put ("receivable", balance.second.convert_to<std::string> ());
entry.put ("receivable_decimal", convert_raw_to_dec (balance.second.convert_to<std::string> ()));
balances.put_child (account_from_request.second.data (), entry);
continue;
}
entry.put ("balance", balance.first.convert_to<std::string> ());
entry.put ("balance_decimal", convert_raw_to_dec (balance.first.convert_to<std::string> ()));
entry.put ("pending", balance.second.convert_to<std::string> ());
entry.put ("balance_decimal", convert_raw_to_dec (balance.second.convert_to<std::string> ()));
entry.put ("receivable", balance.second.convert_to<std::string> ());
entry.put ("receivable_decimal", convert_raw_to_dec (balance.second.convert_to<std::string> ()));
balances.put_child (account_from_request.second.data (), entry);
continue;
}
debug_assert (ec);
errors.put (account_from_request.second.data (), ec.message ());
ec = {};
Expand Down

0 comments on commit 5edbee7

Please sign in to comment.