Fix compilation in debug mode
This commit is contained in:
parent
fbf4e56a95
commit
8b3a309b8d
1 changed files with 4 additions and 4 deletions
|
|
@ -1087,10 +1087,10 @@ void process_dividend_assets(database& db)
|
||||||
("holder_asset", dividend_holder_asset_obj.symbol));
|
("holder_asset", dividend_holder_asset_obj.symbol));
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
// dump balances before the payouts for debugging
|
// dump balances before the payouts for debugging
|
||||||
const auto& balance_idx = db.get_index_type< primary_index< account_balance_index > >().get_secondary_index< balances_by_account_index >();
|
const auto& balance_index = db.get_index_type< primary_index< account_balance_index > >();
|
||||||
auto holder_account_balance_range = balance_idx.equal_range(boost::make_tuple(dividend_data.dividend_distribution_account));
|
const auto& balances = balance_index.get_secondary_index< balances_by_account_index >().get_account_balances( dividend_data.dividend_distribution_account );
|
||||||
for (const account_balance_object& holder_balance_object : boost::make_iterator_range(holder_account_balance_range.first, holder_account_balance_range.second))
|
for( const auto balance : balances )
|
||||||
ilog(" Current balance: ${asset}", ("asset", asset(holder_balance_object.balance, holder_balance_object.asset_type)));
|
ilog(" Current balance: ${asset}", ("asset", asset(balance.second->balance, balance.second->asset_type)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// when we do the payouts, we first increase the balances in all of the receiving accounts
|
// when we do the payouts, we first increase the balances in all of the receiving accounts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue