diff --git a/libraries/chain/db_maint.cpp b/libraries/chain/db_maint.cpp index ad80159b..eb2342c9 100644 --- a/libraries/chain/db_maint.cpp +++ b/libraries/chain/db_maint.cpp @@ -1409,8 +1409,9 @@ void database::perform_chain_maintenance(const signed_block& next_block, const g }); // Reset all BitAsset force settlement volumes to zero - for( const asset_bitasset_data_object* d : get_index_type() ) - modify(*d, [](asset_bitasset_data_object& d) { d.force_settled_volume = 0; }); + //for( const asset_bitasset_data_object* d : get_index_type() ) + for( const auto& d : get_index_type().indices() ) + modify( d, [](asset_bitasset_data_object& o) { o.force_settled_volume = 0; }); // process_budget needs to run at the bottom because // it needs to know the next_maintenance_time diff --git a/libraries/chain/include/graphene/chain/asset_object.hpp b/libraries/chain/include/graphene/chain/asset_object.hpp index e33e7300..d56a41a7 100644 --- a/libraries/chain/include/graphene/chain/asset_object.hpp +++ b/libraries/chain/include/graphene/chain/asset_object.hpp @@ -235,7 +235,8 @@ namespace graphene { namespace chain { > > > asset_bitasset_data_object_multi_index_type; - typedef flat_index asset_bitasset_data_index; + //typedef flat_index asset_bitasset_data_index; + typedef generic_index asset_bitasset_data_index; struct by_symbol; struct by_type;