From c278352713dc9f0230fe9e7d9e8585f6afb6e6fa Mon Sep 17 00:00:00 2001 From: Prabhjot Date: Fri, 2 Aug 2019 09:47:32 -0400 Subject: [PATCH] removed sweeps_parameter_extensions --- libraries/chain/db_balance.cpp | 2 +- tests/common/database_fixture.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/db_balance.cpp b/libraries/chain/db_balance.cpp index f3ca7ac8..0b5e2c02 100644 --- a/libraries/chain/db_balance.cpp +++ b/libraries/chain/db_balance.cpp @@ -121,7 +121,7 @@ void database::adjust_sweeps_vesting_balance(account_id_type account, int64_t de if( delta == 0 ) return; - asset_id_type asset_id = get_global_properties().parameters.extensions.get().sweeps_distribution_asset; + asset_id_type asset_id = get_global_properties().parameters.sweeps_distribution_asset(); auto& index = get_index_type().indices().get(); auto itr = index.find(account); diff --git a/tests/common/database_fixture.cpp b/tests/common/database_fixture.cpp index 468959af..e6a0b327 100644 --- a/tests/common/database_fixture.cpp +++ b/tests/common/database_fixture.cpp @@ -250,7 +250,7 @@ void database_fixture::verify_asset_supplies( const database& db ) for( const sweeps_vesting_balance_object& svbo: db.get_index_type< sweeps_vesting_balance_index >().indices() ) sweeps_vestings += svbo.balance; - total_balances[db.get_global_properties().parameters.extensions.get().sweeps_distribution_asset] += sweeps_vestings / SWEEPS_VESTING_BALANCE_MULTIPLIER; + total_balances[db.get_global_properties().parameters.sweeps_distribution_asset()] += sweeps_vestings / SWEEPS_VESTING_BALANCE_MULTIPLIER; total_balances[asset_id_type()] += db.get_dynamic_global_properties().witness_budget; for( const auto& item : total_debts )