diff --git a/libraries/plugins/market_history/market_history_plugin.cpp b/libraries/plugins/market_history/market_history_plugin.cpp index 25c85b79..a4ffc482 100644 --- a/libraries/plugins/market_history/market_history_plugin.cpp +++ b/libraries/plugins/market_history/market_history_plugin.cpp @@ -209,7 +209,11 @@ void market_history_plugin::plugin_initialize(const boost::program_options::vari database().applied_block.connect( [&]( const signed_block& b){ my->update_market_histories(b); } ); database().add_index< primary_index< bucket_index > >(); - LOAD_VALUE_SET(options, "bucket-size", my->_tracked_buckets, uint32_t); + if( options.count( "bucket-size" ) ) + { + const std::vector& buckets = options["bucket-size"].as>(); + for( auto o : buckets ) my->_tracked_buckets.insert(o); + } if( options.count( "history-per-size" ) ) my->_maximum_history_per_bucket_size = options["history-per-size"].as(); } FC_CAPTURE_AND_RETHROW() }