Skip to content

Commit

Permalink
Fix market ticker volume underflow issue
Browse files Browse the repository at this point in the history
Ref: #1883
  • Loading branch information
abitmore authored and jmjatlanta committed Sep 3, 2019
1 parent 87d765b commit f3a67d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/plugins/market_history/market_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ void market_history_plugin_impl::update_market_histories( const signed_block& b
}
else // if all data are rolled out
{
if( last_min_his_id != _meta->rolling_min_order_his_id ) // if rolled out some
if( !_meta->skip_min_order_his_id
|| last_min_his_id != _meta->rolling_min_order_his_id ) // if rolled out some
{
db.modify( *_meta, [&]( market_ticker_meta_object& mtm ) {
mtm.rolling_min_order_his_id = last_min_his_id;
Expand Down

0 comments on commit f3a67d8

Please sign in to comment.