Skip to content

Commit

Permalink
Merge pull request cryptonomex#616 from bitshares/615-fix-fee-refund-…
Browse files Browse the repository at this point in the history
…test

 Market his: make _meta local, fix fee_refund test
  • Loading branch information
abitmore authored Feb 19, 2018
2 parents dfb3a49 + 85e9136 commit 86276a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/plugins/market_history/market_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ class market_history_plugin_impl
uint32_t _maximum_history_per_bucket_size = 1000;
uint32_t _max_order_his_records_per_market = 1000;
uint32_t _max_order_his_seconds_per_market = 259200;

const market_ticker_meta_object* _meta = nullptr;
};


Expand Down Expand Up @@ -299,6 +297,10 @@ market_history_plugin_impl::~market_history_plugin_impl()
void market_history_plugin_impl::update_market_histories( const signed_block& b )
{
graphene::chain::database& db = database();
const market_ticker_meta_object* _meta = nullptr;
const auto& meta_idx = db.get_index_type<simple_index<market_ticker_meta_object>>();
if( meta_idx.size() > 0 )
_meta = &( *meta_idx.begin() );
const vector<optional< operation_history_object > >& hist = db.get_applied_operations();
for( const optional< operation_history_object >& o_op : hist )
{
Expand Down

0 comments on commit 86276a5

Please sign in to comment.