Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #82 from vikramrajkumar/btsx
Browse files Browse the repository at this point in the history
Set new market_status last and current feed prices in current market eng...
  • Loading branch information
bitsha256 committed Oct 22, 2014
2 parents bb6f46b + 1070b19 commit 97e5538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/blockchain/market_engine_v6.cpp
Expand Up @@ -272,9 +272,9 @@ namespace bts { namespace blockchain { namespace detail {
_pending_state->store_asset_record( *quote_asset );
_pending_state->store_asset_record( *base_asset );

_market_stat.last_error.reset();

// Update market status and market history
_market_stat.update_feed_price( median_feed_price );
_market_stat.last_error.reset();
_pending_state->store_market_status( _market_stat );
update_market_history( trading_volume, opening_price, closing_price, timestamp );

Expand Down

0 comments on commit 97e5538

Please sign in to comment.